Parcourir la source

Add test for Status Schedule of All controllers

Paul Molluzzo il y a 9 ans
Parent
commit
94fae4e627
1 fichiers modifiés avec 10 ajouts et 0 suppressions
  1. 10 0
      test/index.js

+ 10 - 0
test/index.js

@@ -20,3 +20,13 @@ test('Status Schedule', t => {
     t.pass();
   });
 });
+
+test('Status Schedule All', t => {
+  return hydrawise.statusschedule('hydrawise_all').then(data => {
+    console.log(data);
+    if (data.error_msg) {
+      t.fail(`Error: ${data.error_msg}`);
+    }
+    t.pass();
+  });
+});