Skip to content

Instantly share code, notes, and snippets.

@cojack
Created September 11, 2013 07:36
Show Gist options
  • Save cojack/6520389 to your computer and use it in GitHub Desktop.
Save cojack/6520389 to your computer and use it in GitHub Desktop.
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