Skip to content

Commit

Permalink
Added test for multiple property accessors
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom committed Jan 21, 2021
1 parent ca3f3a5 commit 084006a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/CRUD.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,14 @@ describe("StormDB", function() {
let value = db.get("test-string").value();
assert.equal(value, "string");
});

it("should successfully get values with multiple property accessors", function() {
const engine = new StormDB.localFileEngine(exampleDBPath);
const db = new StormDB(engine);

let value = db.get("test-obj.nested-key").value();
assert.equal(value, "nested-value");
});
});

describe(".set()", function() {
Expand Down

0 comments on commit 084006a

Please sign in to comment.