migrated all Circle tests from old unit test framework to Mocha

This commit is contained in:
Eric Rowell
2013-09-01 14:08:21 -07:00
parent fe551c1ece
commit 159959a077
16 changed files with 1408 additions and 279 deletions

View File

@@ -1,21 +1,11 @@
suite('Util', function(){
var util;
setup(function(){
});
suite('get()', function(){
test('get()', function(){
var get = Kinetic.Util.get;
test('get integer', function(){
assert.equal(get(1, 2), 1);
});
test('default to integer', function(){
assert.equal(get(undefined, 2), 2);
});
test('default to object', function(){
assert.equal(get(undefined, {foo:'bar'}).foo, 'bar');
});
assert.equal(get(1, 2), 1);
assert.equal(get(undefined, 2), 2);
assert.equal(get(undefined, {foo:'bar'}).foo, 'bar');
});
});