Skip to content

Commit 707335e

Browse files
author
Snowflake107
committed
test
1 parent 5406bf1 commit 707335e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

test/database.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
[]
1+
[{"ID":"foo","data":"bar"}]

test/test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ const db = new Database("mongodb://localhost/test");
33

44
db.on("ready", () => {
55
console.log("Hey, im connected!");
6+
db.set("foo", "bar").then(() => db.export("./database.json"))
67
});
78

89
db.on("error", console.error);

0 commit comments

Comments
 (0)