]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard/osd-summary.pipe.spec.ts
import 15.2.1 Octopus source
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / src / app / ceph / dashboard / osd-summary.pipe.spec.ts
index 6332017dd718fee1e0d930a820f6da5732674a2f..5b7010907d3408d301464ade07839b2e9fdc2edb 100644 (file)
@@ -23,7 +23,11 @@ describe('OsdSummaryPipe', () => {
 
   it('transforms having 3 osd with 3 up, 3 in, 0 down, 0 out', () => {
     const value = {
-      osds: [{ up: 1, in: 1 }, { up: 1, in: 1 }, { up: 1, in: 1 }]
+      osds: [
+        { up: 1, in: 1 },
+        { up: 1, in: 1 },
+        { up: 1, in: 1 }
+      ]
     };
     expect(pipe.transform(value)).toEqual([
       {
@@ -43,7 +47,11 @@ describe('OsdSummaryPipe', () => {
 
   it('transforms having 3 osd with 2 up, 1 in, 1 down, 1 out', () => {
     const value = {
-      osds: [{ up: 1, in: 1 }, { up: 1, in: 0 }, { up: 0, in: 0 }]
+      osds: [
+        { up: 1, in: 1 },
+        { up: 1, in: 0 },
+        { up: 0, in: 0 }
+      ]
     };
     expect(pipe.transform(value)).toEqual([
       {
@@ -71,7 +79,11 @@ describe('OsdSummaryPipe', () => {
 
   it('transforms having 3 osd with 2 up, 2 in, 1 down, 0 out', () => {
     const value = {
-      osds: [{ up: 1, in: 1 }, { up: 1, in: 1 }, { up: 0, in: 0 }]
+      osds: [
+        { up: 1, in: 1 },
+        { up: 1, in: 1 },
+        { up: 0, in: 0 }
+      ]
     };
     expect(pipe.transform(value)).toEqual([
       {
@@ -99,7 +111,11 @@ describe('OsdSummaryPipe', () => {
 
   it('transforms having 3 osd with 3 up, 2 in, 0 down, 1 out', () => {
     const value = {
-      osds: [{ up: 1, in: 1 }, { up: 1, in: 1 }, { up: 1, in: 0 }]
+      osds: [
+        { up: 1, in: 1 },
+        { up: 1, in: 1 },
+        { up: 1, in: 0 }
+      ]
     };
     expect(pipe.transform(value)).toEqual([
       {