mirror of
https://github.com/konvajs/konva.git
synced 2025-04-05 20:48:28 +08:00
12 lines
240 B
JavaScript
12 lines
240 B
JavaScript
suite('Util', function(){
|
|
var util;
|
|
|
|
test('get()', function(){
|
|
var get = Kinetic.Util.get;
|
|
|
|
assert.equal(get(1, 2), 1);
|
|
assert.equal(get(undefined, 2), 2);
|
|
assert.equal(get(undefined, {foo:'bar'}).foo, 'bar');
|
|
});
|
|
});
|