jasminejsx
Version:
A port of Jasmine.js that is compatible with Adobe ExtendScript
13 lines (11 loc) • 341 B
JSX
describe('Calculator', function () {
var counter = 0
it('can add a number', function () {
counter = counter + 2; // counter was 0 before
expect(counter).toEqual(2);
});
it('can multiply a number', function () {
counter = counter * 5; // counter was 2 before
expect(counter).toEqual(10);
});
});