Jasmine is a behavior-driven development framework for testing JavaScript code. It does not depend on any other JavaScript frameworks. It does not require a DOM. And it has a clean, obvious syntax so that you can easily write tests.
A code example to use this framework is:
describe("A suite is just a function", function() {
var a;
it("and so is a spec", function() {
a = true;
expect(a).toBe(true);
});
});
DiffSearch does not support the second argument of this method call ( function(){...} ) at the moment. As a result, the goal of this task is to include the above support. The first step is to look at the file DiffSearch/src/main/resources/ANTLR/ECMAScript.g4 to check where the incompatibility is located. Then, the grammar should be edited to fix the issue.
A code example to use this framework is:
DiffSearch does not support the second argument of this method call ( function(){...} ) at the moment. As a result, the goal of this task is to include the above support. The first step is to look at the file DiffSearch/src/main/resources/ANTLR/ECMAScript.g4 to check where the incompatibility is located. Then, the grammar should be edited to fix the issue.