Introduce stricter linting

This commit is contained in:
Sidharth Vinod
2022-09-02 11:44:06 +05:30
parent 5597cf45bf
commit 269722fb65
27 changed files with 208 additions and 75 deletions

View File

@@ -1,12 +1,14 @@
import { parser } from './parser/info';
import infoDb from './infoDb';
describe('when parsing an info graph it', function () {
var ex;
let ex;
beforeEach(function () {
ex = require('./parser/info').parser;
ex.yy = require('./infoDb');
ex = parser;
ex.yy = infoDb;
});
it('should handle an info definition', function () {
var str = `info
let str = `info
showInfo`;
ex.parse(str);