Skip to content

Commit

Permalink
fix amp-list tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Dima Voytenko committed Feb 24, 2021
1 parent ea8102c commit f1cb1cb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion extensions/amp-list/0.1/test/test-amp-list-container.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ describes.realWin(
findAndRenderTemplate: env.sandbox.stub(),
findAndRenderTemplateArray: env.sandbox.stub(),
};
env.sandbox.stub(Services, 'templatesFor').returns(templates);
env.sandbox.stub(Services, 'templatesForDoc').returns(templates);
env.sandbox.stub(AmpDocService.prototype, 'getAmpDoc').returns(ampdoc);

element = doc.createElement('amp-list');
Expand Down
2 changes: 1 addition & 1 deletion extensions/amp-list/0.1/test/test-amp-list-load-more.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ describes.realWin(
findAndRenderTemplate: env.sandbox.stub(),
findAndRenderTemplateArray: env.sandbox.stub(),
};
env.sandbox.stub(Services, 'templatesFor').returns(templates);
env.sandbox.stub(Services, 'templatesForDoc').returns(templates);
env.sandbox.stub(AmpDocService.prototype, 'getAmpDoc').returns(ampdoc);
element = doc.createElement('amp-list');
list = new AmpList(element);
Expand Down
2 changes: 1 addition & 1 deletion extensions/amp-list/0.1/test/test-amp-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ describes.repeated(
findAndRenderTemplate: env.sandbox.stub(),
findAndRenderTemplateArray: env.sandbox.stub(),
};
env.sandbox.stub(Services, 'templatesFor').returns(templates);
env.sandbox.stub(Services, 'templatesForDoc').returns(templates);
env.sandbox
.stub(AmpDocService.prototype, 'getAmpDoc')
.returns(ampdoc);
Expand Down

0 comments on commit f1cb1cb

Please sign in to comment.