Skip to content

Commit

Permalink
Removed expect() calls from README.
Browse files Browse the repository at this point in the history
  • Loading branch information
mcollina committed Jan 26, 2014
1 parent 96876ab commit abdb017
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,18 +65,16 @@ db.put(triple, function(err) {
Retrieving it through pattern-matching is extremely easy:
```javascript
db.get({ subject: "a" }, function(err, list) {
expect(list).to.eql([triple]);
done();
console.log(list);
});
```

It even support a Stream interface:
```javascript
var stream = db.getStream({ predicate: "b" });
stream.on("data", function(data) {
expect(data).to.eql(triple);
console.log(data);
});
stream.on("end", done);
```

#### Triple Properties
Expand All @@ -87,7 +85,7 @@ little overhead (a part from storage costs), it is very easy:
var triple = { subject: "a", predicate: "b", object: "c", "someStuff": 42 };
db.put(triple, function() {
db.get({ subject: "a" }, function(err, list) {
expect(list).to.eql([triple]);
console.log(list);
});
});
```
Expand All @@ -99,8 +97,7 @@ It is possible to implement pagination of get results by using

```javascript
db.get({ subject: "a", limit: 4, offset: 2}, function(err, list) {
expect(list).to.eql([triple]);
done();
console.log(list);
});
```

Expand Down Expand Up @@ -258,8 +255,7 @@ db.search([{
object: db.v("y")
}], { limit: 4, offset: 2 }, function(err, list) {

expect(list).to.eql([triple]);
done();
console.log(list);
});
```

Expand Down

0 comments on commit abdb017

Please sign in to comment.