Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
this.emitFile is not available in test mocks, so we need to check for
cssData instead of cssPath
  • Loading branch information
non25 committed Jan 19, 2021
1 parent f5d5285 commit 3a49db4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/loader.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ describe('loader', () => {
function(err, code, map) {
expect(err).not.to.exist;

expect(code).to.match(/!=!svelte-loader\?cssPath=/);
expect(code).to.match(/!=!svelte-loader\?cssData=/);
},
{ emitCss: true }
)
Expand Down

0 comments on commit 3a49db4

Please sign in to comment.