Skip to content

Commit 6a54ba1

Browse files
committed
refactor(test): use isC: true
1 parent 5dd96c7 commit 6a54ba1

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

test/refs-documents.spec.js

+8-8
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ beforeEach(async () => {
1919
c = collection.doc()
2020
d = collection.doc()
2121
await a.update({ isA: true })
22-
await c.update({ c: true })
22+
await c.update({ isC: true })
2323
await d.update({ ref: c })
2424

2525
vm = new Vue({
@@ -66,7 +66,7 @@ test('binds refs nested in documents (objects)', async () => {
6666

6767
expect(vm.item).toEqual({
6868
obj: {
69-
ref: { c: true }
69+
ref: { isC: true }
7070
}
7171
})
7272
})
@@ -86,7 +86,7 @@ test('binds refs deeply nested in documents (objects)', async () => {
8686
obj: {
8787
nested: {
8888
ref: {
89-
c: true
89+
isC: true
9090
}
9191
}
9292
}
@@ -96,15 +96,15 @@ test('binds refs deeply nested in documents (objects)', async () => {
9696
test('update inner ref', async () => {
9797
expect(vm.d).toEqual({
9898
ref: {
99-
c: true
99+
isC: true
100100
}
101101
})
102102

103-
await c.update({ c: false })
103+
await c.update({ isC: false })
104104

105105
expect(vm.d).toEqual({
106106
ref: {
107-
c: false
107+
isC: false
108108
}
109109
})
110110
})
@@ -209,7 +209,7 @@ test('unbinds all refs when the document is unbound', async () => {
209209
await vm.$bind('d', d)
210210
expect(vm.d).toEqual({
211211
ref: {
212-
c: true
212+
isC: true
213213
}
214214
})
215215
vm.$unbind('d')
@@ -284,7 +284,7 @@ test('unbinds when a ref is replaced', async () => {
284284
await vm.$bind('d', d)
285285
expect(vm.d).toEqual({
286286
ref: {
287-
c: true
287+
isC: true
288288
}
289289
})
290290

0 commit comments

Comments
 (0)