Permalink
Browse files

Tested scope.destoyAll

  • Loading branch information...
1 parent 06dcc8f commit 56383be67ac644e764090ed23af6669e1d8aa30a @1602 committed Jan 10, 2014
Showing with 15 additions and 0 deletions.
  1. +15 −0 test/scope.test.js
View
@@ -61,4 +61,19 @@ describe('sc0pe', function() {
});
});
});
+
+ it('should destroy all', function(done) {
+ Station.inactive.ground.create(function() {
+ Station.inactive(function(err, ss) {
+ console.log(arguments);
+ ss.should.have.lengthOf(1);
+ Station.inactive.destroyAll(function() {
+ Station.inactive(true, function(err, ss) {
+ ss.should.have.lengthOf(0);
+ done();
+ });
+ });
+ });
+ });
+ });
});

0 comments on commit 56383be

Please sign in to comment.