Skip to content

Commit 51c89a4

Browse files
committed
fix tests
1 parent 0f097bf commit 51c89a4

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@servicestack/vue",
3-
"version": "3.1.0",
3+
"version": "3.0.0",
44
"repository": {
55
"type": "git",
66
"url": "https://github.com/ServiceStack/servicestack-vue"

tests/unit/Alert.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ test('displays the alert message in the slot', async () => {
88

99
// Create a Vue app and mount it
1010
const app = createApp({
11-
render: () => h(Alert, { type: 'warn' }, 'Hello, world!')
11+
render: () => h(Alert, { type: 'warn' }, { default: () => 'Hello, world!' })
1212
});
1313
app.mount(container);
1414

tests/unit/Metadata.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ test('toFormValues', () => {
2121
const container = document.createElement('div')
2222
app.mount(container)
2323

24-
// toFormValues mutates and returns original argument
25-
expect(result.a === result.b).toBe(true)
24+
// toFormValues should not mutate and returns a shallow copy
25+
expect(result.a === result.b).toBe(false)
2626
expect(result.a.a).toBe('foo')
2727
expect(result.a.b).toBe(1)
2828
expect(result.a.c).toBe(null)

0 commit comments

Comments
 (0)