Update it all, VisualStudio Changes

This commit is contained in:
2016-08-23 12:33:06 -05:00
parent 2a0c6f9e45
commit b8814259b5
136 changed files with 180080 additions and 66 deletions

View File

@@ -0,0 +1,9 @@
var Example = function () {
'use strict';
this.add = function (x, y) {
return x + y;
};
};
module.exports = Example;

View File

@@ -0,0 +1,25 @@
var Example = require('./example.js');
describe("Example", function() {
var example = new Example();
it("add 2 and 2", function () {
var result = example.add(2, 2);
expect(result).toEqual(4);
});
it("add 12 and 24", function () {
var result = example.add(12, 24);
expect(result).toEqual(36);
});
it("add 100 and 1", function () {
var result = example.add(100, 1);
expect(result).toEqual(101);
});
return it("add 2 and -2", function () {
var result = example.add(2, -2);
expect(result).toEqual(0);
});
});