summaryrefslogtreecommitdiffstats
path: root/src/pybind/mgr/dashboard/frontend/src/app/shared/classes/table-status.spec.ts
blob: 7fa7ba1a4ade20df8a437cc8fd40bf8bc26d3bb3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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' });
  });
});