]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/pybind/mgr/dashboard/frontend/src/app/shared/classes/table-status.spec.ts
update source to Ceph Pacific 16.2.2
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / src / app / shared / classes / table-status.spec.ts
diff --git a/ceph/src/pybind/mgr/dashboard/frontend/src/app/shared/classes/table-status.spec.ts b/ceph/src/pybind/mgr/dashboard/frontend/src/app/shared/classes/table-status.spec.ts
new file mode 100644 (file)
index 0000000..7fa7ba1
--- /dev/null
@@ -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' });
+  });
+});