Skip to content

Commit a914d74

Browse files
committed
fix: test accessing/assigning wrong values
1 parent 626e6ea commit a914d74

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

test/service-module/model-temp-ids.test.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,12 @@ describe('Models - Temp Ids', function() {
180180
},
181181
context => {
182182
assert(!context.data.__id, '__id was not sent to API server')
183-
assert(!context.data.__id, '__isTemp was not sent to API server')
183+
assert(
184+
!context.data.__isTemp,
185+
'__isTemp was not sent to API server'
186+
)
184187
context.result = {
185-
id: 1,
188+
_id: 1,
186189
description: 'Robb Wolf - the Paleo Solution',
187190
website:
188191
'https://robbwolf.com/shop-old/products/the-paleo-solution-the-original-human-diet/',

0 commit comments

Comments
 (0)