Skip to content

Commit 07d1b0d

Browse files
author
Franck Freiburger
committed
wip(tests): fix vue2 test
test: should pass vue-template-es2015-compiler test "rest spread in scope position"
1 parent cce49ec commit 07d1b0d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/basic.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -822,7 +822,7 @@ const { defaultFilesFactory, createPage } = require('./testsTools.js');
822822

823823
'/main.vue': `
824824
<template>
825-
<foo v-slot="{ foo, ...rest }">{{ rest }}</foo>
825+
<foo v-slot="{ foo, ...rest }">{{ JSON.stringify(rest) }}</foo>
826826
</template>
827827
<script>
828828
export default {
@@ -843,7 +843,7 @@ const { defaultFilesFactory, createPage } = require('./testsTools.js');
843843
}
844844
});
845845

846-
await expect(page.$eval('#app', el => el.innerHTML)).resolves.toMatch( JSON.stringify({ bar: 2, baz: 3 }, null, 2));
846+
await expect(page.$eval('#app div', el => el.innerHTML)).resolves.toMatch( JSON.stringify({ bar: 2, baz: 3 }));
847847
});
848848
}
849849

0 commit comments

Comments
 (0)