Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 75954fa

Browse files
author
Michael O'Brien
committed
CLEAN
1 parent c7645a1 commit 75954fa

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

src/Expression.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ export class Expression {
8383
}
8484
}
8585
// Batch does not use update expressions (Ugh!)
86-
// let rec = op == 'put' || (this.params.batch && op == 'update') ? {} : null
8786
this.puts = this.addProperties(op, this.model.block, properties)
8887

8988
/*

src/Table.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ const DynamoOps = {
5353
transactWrite: 'transactWrite',
5454
}
5555

56+
/*
57+
The generic model is used for the low-level API and batch operations
58+
*/
5659
const GenericModel = '_Generic'
5760

5861
const maxBatchSize = 25
@@ -722,8 +725,6 @@ export class Table {
722725
}
723726
def.ConsistentRead = params.consistent ? true : false
724727

725-
// let result = await this.execute(GenericModel, 'batchGet', batch, {}, params)
726-
727728
let result,
728729
retries = 0,
729730
more

test/typescript-infer.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,12 @@ describe('Typescript infer', () => {
4545

4646
test('Create', async () => {
4747
const properties = {
48-
// name: 'Michael',
4948
5049
}
5150

5251
await expect(async () => {
53-
// @ts-expect-error check missing properties
5452
const user = await User.create(properties)
5553

56-
// @ts-expect-error check missing properties
5754
const user1 = await User1.create(properties)
5855
}).rejects.toThrow()
5956
})

test/utils/teardown.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ import DynamoDbLocal from 'dynamo-db-local'
33
module.exports = async () => {
44
let pid = parseInt(process.env.DYNAMODB_PID || '')
55
if (pid) {
6-
process.kill(pid)
6+
try {
7+
process.kill(pid)
8+
} catch (err) {}
79
}
810
}

0 commit comments

Comments
 (0)