瀏覽代碼

add migration tests

ryan 6 年之前
父節點
當前提交
8299c95459
共有 1 個文件被更改,包括 31 次插入0 次删除
  1. 31 0
      public/app/plugins/panel/gauge/__snapshots__/module.test.ts.snap

+ 31 - 0
public/app/plugins/panel/gauge/__snapshots__/module.test.ts.snap

@@ -0,0 +1,31 @@
+// Jest Snapshot v1, https://goo.gl/fbAQLP
+
+exports[`Gauge Module migrations should migrate from 6.0 settings to 6.1 1`] = `
+Object {
+  "display": Object {
+    "decimals": 4,
+    "mappings": Array [],
+    "prefix": "a",
+    "stat": "avg",
+    "suffix": "z",
+    "thresholds": Array [
+      Object {
+        "color": "green",
+        "index": 0,
+        "value": -Infinity,
+      },
+      Object {
+        "color": "red",
+        "index": 1,
+        "value": 80,
+      },
+    ],
+    "unit": "ms",
+  },
+  "maxValue": 60,
+  "minValue": 50,
+  "showThresholdLabels": false,
+  "showThresholdMarkers": true,
+  "stat": "avg",
+}
+`;