Skip to content

Commit 058732b

Browse files
committed
add test
1 parent 7cbf103 commit 058732b

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

test/queries.test.ts

+11-1
Original file line numberDiff line numberDiff line change
@@ -53,5 +53,15 @@ import { WebSocketClient, SigninMessage, Message, NoderedUtil } from "../src/ind
5353
assert.notStrictEqual(users, null);
5454
assert.strictEqual(users.length, 1);
5555
}
56+
@timeout(5000)
57+
@test async 'createcollection'() {
58+
try {
59+
await NoderedUtil.DropCollection({ collectionname: "testcollection" })
60+
} catch (error) {
61+
}
62+
63+
await NoderedUtil.CreateCollection({ collectionname: "testcollection", timeseries: { timeField: "timestamp", metaField: "metadata" } } )
64+
65+
}
5666
}
57-
// cls | ts-mocha --paths -p test/tsconfig.json .\test\queries.test.ts
67+
// cls | ts-mocha --paths -p test/tsconfig.json ./test/queries.test.ts

0 commit comments

Comments
 (0)