Skip to content

Commit

Permalink
update url for non existing css
Browse files Browse the repository at this point in the history
  • Loading branch information
jeeyyy committed Feb 3, 2020
1 parent a4ad8b8 commit ca1a9d0
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions test/integration/full/preload/preload.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,9 @@ describe('axe.utils.preload integration test', function() {
id: 'crossOriginLinkHref',
href: 'https://unpkg.com/gutenberg-css@0.4'
},
crossOriginLinkHrefThatWillFailBecauseOfCors: {
id: 'crossOriginLinkHrefThatWillFailBecauseOfCors',
href:
'https://qkadxq0tba-flywheel.netdna-ssl.com/wp-content/plugins/deque-hubspot/assets/css/deque-forms.css?ver=1.2.4'
crossOriginDoesNotExist: {
id: 'crossOriginDoesNotExist',
href: 'https://i-do-not-exist.css'
},
crossOriginLinkHrefMediaPrint: {
id: 'crossOriginLinkHrefMediaPrint',
Expand Down Expand Up @@ -103,8 +102,8 @@ describe('axe.utils.preload integration test', function() {
});
});

it('returns NO preloaded CSSOM assets when requested stylesheets has been blocked by CORS policy: No `Access-Control-Allow-Origin`', function(done) {
stylesForPage = [styleSheets.crossOriginLinkHrefThatWillFailBecauseOfCors];
it('returns NO preloaded CSSOM assets when requested stylesheet does not exist`', function(done) {
stylesForPage = [styleSheets.crossOriginDoesNotExist];
attachStylesheets({ styles: stylesForPage }, function(err) {
if (err) {
done(err);
Expand Down

0 comments on commit ca1a9d0

Please sign in to comment.