Skip to content

Commit 7657b52

Browse files
committed
chore: fix tests for Svelte 4
This will fail the builds for Svelte 3 on master temporarily, but should make ecosystem-ci runs against the version-4 branch green
1 parent 652a861 commit 7657b52

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"svelte": "^3.0.0"
3030
},
3131
"peerDependencies": {
32-
"svelte": ">3.0.0"
32+
"svelte": "^3.0.0 || ^4.0.0"
3333
},
3434
"repository": {
3535
"type": "git",

test/loader.spec.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ describe('loader', () => {
125125
expect(map).to.exist;
126126

127127
// es2015 statements remain
128-
expect(code).to.contain(`import { hello } from "./utils";`);
128+
expect(code).to.contain(`import { hello } from './utils';`);
129129
})
130130
);
131131

@@ -135,7 +135,7 @@ describe('loader', () => {
135135
expect(err).not.to.exist;
136136

137137
// es2015 statements remain
138-
expect(code).to.contain(`import Nested from "./nested";`);
138+
expect(code).to.contain(`import Nested from './nested';`);
139139

140140
expect(code).to.exist;
141141
expect(map).to.exist;
@@ -149,7 +149,7 @@ describe('loader', () => {
149149
'should configure css (default)',
150150
testLoader('test/fixtures/css.html', function(err, code, map) {
151151
expect(err).not.to.exist;
152-
expect(code).to.contain('function add_css()');
152+
expect(code).to.contain('function add_css(target)');
153153
})
154154
);
155155

@@ -159,7 +159,7 @@ describe('loader', () => {
159159
'test/fixtures/css.html',
160160
function(err, code, map) {
161161
expect(err).not.to.exist;
162-
expect(code).not.to.contain('function add_css()');
162+
expect(code).not.to.contain('function add_css(target)');
163163
},
164164
{ compilerOptions: { css: false } }
165165
)

0 commit comments

Comments
 (0)