Skip to content

Commit

Permalink
made test async to pass in the event of webkitsqliteadaptor situation
Browse files Browse the repository at this point in the history
  • Loading branch information
brianleroux committed Mar 11, 2010
1 parent 6ea72ff commit 4835d37
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions spec/lawnchair-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,15 @@ context('Lawnchair', function(){
stop();
store.find('r.name == "brian"', 'equals(r.name, "brian"); start();');
});

should( 'get an object for key', function() {
stop();
store.save({key:'xyz123', name:'tim'});
store.get('xyz123', function(r) {
equals(r.name, 'tim');
store.remove(r);
start();
store.save({key:'xyz123', name:'tim'}, function(){
store.get('xyz123', function(r) {
equals(r.name, 'tim');
store.remove(r);
start();
});
});
});

Expand Down Expand Up @@ -92,6 +93,7 @@ context('Lawnchair', function(){
equals(store.adaptor.uuid().length, 36);
});
// ---

});


Expand Down

0 comments on commit 4835d37

Please sign in to comment.