mirror of
https://github.com/Karaka-Management/jsOMS.git
synced 2026-01-11 17:58:41 +00:00
28 lines
664 B
JavaScript
Executable File
28 lines
664 B
JavaScript
Executable File
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');
|
|
});
|
|
});
|
|
}); |