Skip to content

Commit

Permalink
ampdoc: Fix params unit test (#26831)
Browse files Browse the repository at this point in the history
- Arguments to describe() were incorrect.
- Expected result to explicit params tests was incorrect.
  • Loading branch information
mdmower committed Feb 19, 2020
1 parent ad6c09a commit 8f0aa2d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/unit/test-ampdoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ describes.sandboxed('AmpDocService', {}, () => {
delete window.document['__AMPDOC'];
});

describe('params', {}, () => {
describe('params', () => {
let doc, win;

beforeEach(() => {
Expand Down Expand Up @@ -73,7 +73,7 @@ describes.sandboxed('AmpDocService', {}, () => {
}).getSingleDoc();

// Fragment parameters take precedence.
expect(ampdoc.getParam('other')).to.equal('three');
expect(ampdoc.getParam('other')).to.equal('zero');
expect(ampdoc.getParam('param1')).to.be.null;
expect(ampdoc.getParam('paddingTop')).to.be.null;
});
Expand Down

0 comments on commit 8f0aa2d

Please sign in to comment.