mirror of
https://github.com/Karaka-Management/jsOMS.git
synced 2026-01-11 09:58:39 +00:00
33 lines
760 B
JavaScript
Executable File
33 lines
760 B
JavaScript
Executable File
import { AccountManager } from '../../Account/AccountManager.js';
|
|
import { Account } from '../../Account/Account.js';
|
|
|
|
describe('AccountManagerTest', function ()
|
|
{
|
|
'use strict';
|
|
|
|
describe('testDefault', function ()
|
|
{
|
|
it('Testing default functionality', function ()
|
|
{
|
|
let obj = new AccountManager();
|
|
|
|
expect(obj.get(2)).toBe(null);
|
|
});
|
|
});
|
|
|
|
describe('testSetGet', function ()
|
|
{
|
|
it('Testing default functionality', function ()
|
|
{
|
|
let obj = new AccountManager();
|
|
let acc = new Account();
|
|
|
|
obj.add(acc);
|
|
expect(obj.get(0)).toBe(acc);
|
|
|
|
obj.remove(0);
|
|
expect(obj.get(0)).toBe(null);
|
|
});
|
|
});
|
|
});
|