BREAKING CHANGE(core): refactored ObjectMap and introduced concat feature

This commit is contained in:
2020-05-04 00:09:20 +00:00
parent 5159d7e4bf
commit de04d75e18
5 changed files with 69 additions and 13 deletions

View File

@ -11,7 +11,7 @@ interface ITestObject {
propOne: string;
propTwo: string;
}
let testObjectmap: lik.Objectmap<ITestObject>;
let testObjectmap: lik.ObjectMap<ITestObject>;
let testObject1: ITestObject = {
propOne: 'hello',
propTwo: 'hello2'
@ -22,8 +22,8 @@ let testObject2: ITestObject = {
};
tap.test('new lik.Objectmap() -> should correctly instantiate an Objectmap', async () => {
testObjectmap = new lik.Objectmap<ITestObject>();
expect(testObjectmap).be.instanceof(lik.Objectmap);
testObjectmap = new lik.ObjectMap<ITestObject>();
expect(testObjectmap).be.instanceof(lik.ObjectMap);
});
tap.test('lik.Objectmap.add() -> should correctly add an object to Objectmap', async () => {