mirror of
https://github.com/Karaka-Management/jsOMS.git
synced 2026-01-11 09:58:39 +00:00
28 lines
664 B
JavaScript
28 lines
664 B
JavaScript
describe('ArrayUtilsTest', function ()
|
|
{
|
|
"use strict";
|
|
|
|
describe('testGetArray', function ()
|
|
{
|
|
it('Testing get functionality', function ()
|
|
{
|
|
const expected = {
|
|
'a' : {
|
|
'aa' : 1,
|
|
'ab' : [
|
|
'aba',
|
|
'ab0',
|
|
[
|
|
3,
|
|
'c',
|
|
],
|
|
4,
|
|
],
|
|
},
|
|
2 : '2a',
|
|
};
|
|
|
|
expect(jsOMS.getArray('a/ab/1', expected)).toBe('ab0');
|
|
});
|
|
});
|
|
}); |