jsOMS/tests/Account/AccountManagerTest.js
Dennis Eichhorn c7a9ddb926 fix tests
2024-04-24 16:23:32 +00:00

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);
});
});
});