mirror of
https://github.com/konvajs/konva.git
synced 2025-04-24 19:03:56 +08:00
9 lines
305 B
JavaScript
9 lines
305 B
JavaScript
Test.Modules.UTIL = {
|
|
'util get()': function(containerId) {
|
|
var get = Kinetic.Util.get;
|
|
|
|
test(get(1, 2) === 1, 'get() should return 1');
|
|
test(get(0, 2) === 0, 'get() should return 0');
|
|
test(get(undefined, {foo:'bar'}).foo === 'bar', 'get() should return bar');
|
|
}
|
|
}; |