Skip to content

Commit 19bedff

Browse files
fix(mapper): use existing model
1 parent f04104d commit 19bedff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/mapper/mapper.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -680,8 +680,8 @@ describe('Mapper', () => {
680680
})
681681

682682
describe('model with combined decorators', () => {
683-
const toDbValue: ModelWithCombinedDecoratorsModel = { id: 'idValue' }
684-
const mapped = toDb(toDbValue, ModelWithCombinedDecoratorsModel)
683+
const toDbValue: SimpleWithRenamedPartitionKeyModel = { id: 'idValue', age: 30 }
684+
const mapped = toDb(toDbValue, SimpleWithRenamedPartitionKeyModel)
685685
expect(mapped).toEqual({ custom_id: { S: 'idValue' } })
686686
})
687687

0 commit comments

Comments
 (0)