Explorar o código

Fix test not including an expectation

Lucas de Souza %!s(int64=6) %!d(string=hai) anos
pai
achega
7d4075813e
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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();});
   });
 });