瀏覽代碼

Fix test not including an expectation

Lucas de Souza 6 年之前
父節點
當前提交
7d4075813e
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      tests/test22.spec.js

+ 2 - 1
tests/test22.spec.js

@@ -19,6 +19,7 @@ describe('An assignment to a variable', function () {
     const exec = new IVProgProcessor(parser.parseTree());
     exec.interpretAST().then(sto => {
       done(new Error('Should not have resolved'));
-    }).catch( _ => done());
+    }).catch( _ => {expect(1).toEqual(1);
+    done();});
   });
 });