From 5fcff09aae0f1816a2fe2f3dbfbe3b9d2fccbc8f Mon Sep 17 00:00:00 2001 From: gconsidine Date: Fri, 10 Nov 2017 12:33:27 -0500 Subject: [PATCH] Update string-related component tests --- awx/ui/test/unit/components/layout.unit.js | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/awx/ui/test/unit/components/layout.unit.js b/awx/ui/test/unit/components/layout.unit.js index 18020d980e..3b2140385e 100644 --- a/awx/ui/test/unit/components/layout.unit.js +++ b/awx/ui/test/unit/components/layout.unit.js @@ -130,8 +130,8 @@ describe('Components | Layout', () => { expect(_ComponentsStrings_.get).toHaveBeenCalled(); })); - it('ComponentsStrings get() method should throw an error if string is not a property name of the layout class', () => { - expect(controller.getString.bind(null, 'SUBMISSION_ERROR_TITLE')).toThrow(); + it('ComponentsStrings get() method should return undefined if string is not a property name of the layout class', () => { + expect(controller.getString('SUBMISSION_ERROR_TITLE')).toBe(undefined); }); it('should return layout string', () => { @@ -145,16 +145,6 @@ describe('Components | Layout', () => { expect(controller.getString(key)).toBe(value); }); }); - - it('should return default string', () => { - const defaultStrings = { - BRAND_NAME: 'AWX' - }; - - _.forEach(defaultStrings, (value, key) => { - expect(controller.getString(key)).toBe(value); - }); - }); }); }); });