From 6225ebb29254ca6381ce91a3e0553f592b2fbc40 Mon Sep 17 00:00:00 2001 From: Eylon Malin Date: Wed, 20 Nov 2019 10:41:18 +0200 Subject: fix is a-la-carte cross modern UI Issue-ID: VID-701 Signed-off-by: Eylon Malin Change-Id: I6248382d71e6cec54104d42d95b0130d51404410 --- vid-webpack-master/src/app/shared/utils/util.spec.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'vid-webpack-master/src/app/shared/utils/util.spec.ts') diff --git a/vid-webpack-master/src/app/shared/utils/util.spec.ts b/vid-webpack-master/src/app/shared/utils/util.spec.ts index 2f9142f9c..4b39764f5 100644 --- a/vid-webpack-master/src/app/shared/utils/util.spec.ts +++ b/vid-webpack-master/src/app/shared/utils/util.spec.ts @@ -1,5 +1,6 @@ import {Utils} from "./utils"; import {TestBed} from "@angular/core/testing"; +import each from "jest-each"; describe('Util', () => { @@ -28,4 +29,15 @@ describe('Util', () => { test('hasContents should return true if object is not undefined and not null and not empty', () => { expect(Utils.hasContents("someValue")).toBeTruthy(); }); + + const instantiationTypesDataProvider = [ + ['Macro', false ], + ['ALaCarte', true ], + ['ClientConfig', true], + ['dont know', true] + ]; + each(instantiationTypesDataProvider).test('instantiationType %s isALaCarte shall be %s', (instantiationType, expected ) => { + expect(Utils.isALaCarte(instantiationType)).toEqual(expected); + }); + }); -- cgit 1.2.3-korg