Skip to content

Commit

Permalink
test: replace deprecated collection.insert to collection.insertOne
Browse files Browse the repository at this point in the history
  • Loading branch information
mingchuno committed Jun 15, 2019
1 parent 545c06e commit ad39e88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/legacy-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ exports.test_get_promise = function(done) {
exports.test_all = function(done) {
getNativeDbConnection((store, db, collection) => {
const sid = 'test_all-sid'
collection.insert(
collection.insertOne(
{ _id: sid, session: JSON.stringify({ key1: 1, key2: 'two' }) },
() => {
store.all((err, sessions) => {
Expand All @@ -312,7 +312,7 @@ exports.test_all = function(done) {
exports.test_all_promise = function(done) {
getNativeDbConnection((store, db, collection) => {
const sid = 'test_all_promise-sid'
collection.insert(
collection.insertOne(
{ _id: sid, session: JSON.stringify({ key1: 1, key2: 'two' }) },
() => {
store
Expand Down

0 comments on commit ad39e88

Please sign in to comment.