Update string-related component tests

This commit is contained in:
gconsidine 2017-11-10 12:33:27 -05:00
parent 5e2ecda413
commit 5fcff09aae
No known key found for this signature in database
GPG Key ID: CC78E4D5913BB71D

View File

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