Created
September 11, 2013 07:36
-
-
Save cojack/6520389 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var assert = require('assert'), | |
Bag = require('./../../src/utils/Bag'); | |
var bag = new Bag(); | |
function testFunc() {}; | |
var testObj = new testFunc(), | |
testObj1 = new testFunc(), | |
testObj2 = new testFunc(); | |
describe('Bag', function() { | |
describe('#getClass()', function() { | |
it('nie działa', function() { | |
assert.equal('Bag', bag.getClass()); | |
}); | |
}); | |
describe('#isEmpty()', function() { | |
it('nie jest pusta', function() { | |
assert.equal(true, bag.isEmpty()); | |
}); | |
}); | |
describe('#add()', function() { | |
it('nie dodało', function() { | |
bag.add(testObj); | |
assert.equal(1, bag.size()); | |
}); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment