Skip to content

Commit ad39e88

Browse files
committedJun 15, 2019
test: replace deprecated collection.insert to collection.insertOne
1 parent 545c06e commit ad39e88

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎test/legacy-tests.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ exports.test_get_promise = function(done) {
293293
exports.test_all = function(done) {
294294
getNativeDbConnection((store, db, collection) => {
295295
const sid = 'test_all-sid'
296-
collection.insert(
296+
collection.insertOne(
297297
{ _id: sid, session: JSON.stringify({ key1: 1, key2: 'two' }) },
298298
() => {
299299
store.all((err, sessions) => {
@@ -312,7 +312,7 @@ exports.test_all = function(done) {
312312
exports.test_all_promise = function(done) {
313313
getNativeDbConnection((store, db, collection) => {
314314
const sid = 'test_all_promise-sid'
315-
collection.insert(
315+
collection.insertOne(
316316
{ _id: sid, session: JSON.stringify({ key1: 1, key2: 'two' }) },
317317
() => {
318318
store

0 commit comments

Comments
 (0)
Please sign in to comment.