Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
glevitzky committed May 11, 2018
1 parent 654ae31 commit 268e130
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions extensions/amp-a4a/0.1/test/test-template-validator.js
Expand Up @@ -21,7 +21,6 @@ import {
getAmpAdTemplateHelper,
} from '../template-validator';
import {AdResponseType, ValidatorResult} from '../amp-ad-type-defs';
import {VerificationStatus} from '../signature-verifier';
import {data} from './testdata/valid_css_at_rules_amp.reserialized';
import {utf8Encode} from '../../../../src/utils/bytes';

Expand Down Expand Up @@ -130,7 +129,7 @@ describes.realWin('TemplateValidator', realWinConfig, env => {
analytics: {foo: 'bar'},
})),
{
get: name => null,
get: () => null,
}).then(validatorOutput => {
expect(validatorOutput).to.be.ok;
expect(validatorOutput.type).to.equal(ValidatorResult.NON_AMP);
Expand All @@ -154,7 +153,7 @@ describes.realWin('TemplateValidator', realWinConfig, env => {
return validator.validate({win: env.win},
utf8Encode(JSON.stringify({templateUrl})),
{
get: name => null,
get: () => null,
}).then(validatorOutput => {
expect(validatorOutput).to.be.ok;
expect(validatorOutput.creativeData).to.be.ok;
Expand Down
Expand Up @@ -94,7 +94,7 @@ export const data = {
</body>
</html>`,

minifiedTemplateCreative: `<!doctype html><html ⚡><head><meta charset="utf-8"><link rel="canonical" href="self.html" /><meta name="viewport" content="width=device-width,minimum-scale=1"><style amp-boilerplate>body{-webkit-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-moz-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-ms-animation:-amp-start 8s steps(1,end) 0s 1 normal both;animation:-amp-start 8s steps(1,end) 0s 1 normal both}@-webkit-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-moz-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-ms-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-o-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}</style><noscript><style amp-boilerplate>body{-webkit-animation:none;-moz-animation:none;-ms-animation:none;animation:none}</style></noscript>\n </head>\n <body>\n <template type="amp-mustache">\n <a href="{{url}}">Click for ad!</a>\n </template>\n \n </body>\n</html>`,
minifiedTemplateCreative: '<!doctype html><html ⚡><head><meta charset="utf-8"><link rel="canonical" href="self.html" /><meta name="viewport" content="width=device-width,minimum-scale=1"><style amp-boilerplate>body{-webkit-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-moz-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-ms-animation:-amp-start 8s steps(1,end) 0s 1 normal both;animation:-amp-start 8s steps(1,end) 0s 1 normal both}@-webkit-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-moz-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-ms-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-o-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}</style><noscript><style amp-boilerplate>body{-webkit-animation:none;-moz-animation:none;-ms-animation:none;animation:none}</style></noscript>\n </head>\n <body>\n <template type="amp-mustache">\n <a href="{{url}}">Click for ad!</a>\n </template>\n \n </body>\n</html>',

original: `<!--
Copyright 2016 The AMP HTML Authors. All Rights Reserved.
Expand Down

0 comments on commit 268e130

Please sign in to comment.