mirror of
https://github.com/ansible/awx.git
synced 2026-01-13 11:00:03 -03:30
Update string-related component tests
This commit is contained in:
parent
5e2ecda413
commit
5fcff09aae
@ -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);
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user