We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a4b2ec3 commit 50a9caaCopy full SHA for 50a9caa
1 file changed
test/del_spec.js
@@ -44,4 +44,30 @@ describe("jsonld.del", function() {
44
});
45
46
47
+
48
+ it("should del an iri", function(done) {
49
+ db.jsonld.put(manu, function() {
50
+ db.jsonld.del(manu["@id"], function() {
51
+ db.get({}, function(err, triples) {
52
+ // getting the full db
53
+ expect(triples).to.have.property("length", 0);
54
+ done();
55
+ });
56
57
58
59
60
+ it("should del a single object", function(done) {
61
62
+ db.jsonld.put(tesla, function() {
63
+ db.jsonld.del(tesla, function() {
64
65
66
+ expect(triples).to.have.property("length", 2);
67
68
69
70
71
72
73
0 commit comments