diff options
Diffstat (limited to 'src/pybind/mgr/dashboard/frontend/src/app/shared/classes/table-status.spec.ts')
-rw-r--r-- | src/pybind/mgr/dashboard/frontend/src/app/shared/classes/table-status.spec.ts | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/pybind/mgr/dashboard/frontend/src/app/shared/classes/table-status.spec.ts b/src/pybind/mgr/dashboard/frontend/src/app/shared/classes/table-status.spec.ts new file mode 100644 index 000000000..7fa7ba1a4 --- /dev/null +++ b/src/pybind/mgr/dashboard/frontend/src/app/shared/classes/table-status.spec.ts @@ -0,0 +1,15 @@ +import { TableStatus } from './table-status'; + +describe('TableStatus', () => { + it('should create an instance', () => { + const ts = new TableStatus(); + expect(ts).toBeTruthy(); + expect(ts).toEqual({ msg: '', type: 'light' }); + }); + + it('should create with parameters', () => { + const ts = new TableStatus('danger', 'foo'); + expect(ts).toBeTruthy(); + expect(ts).toEqual({ msg: 'foo', type: 'danger' }); + }); +}); |