This commit is contained in:
Kevin Jahns
2015-06-16 17:18:40 +02:00
parent c7a6e74dd9
commit d37d0ef9af
8 changed files with 24 additions and 27 deletions

View File

@@ -1,18 +0,0 @@
/* @flow */
/* global Buffer */
class Buffer { //eslint-disable-line no-unused-vars
i : number;
constructor () {
this.i = 4;
}
}
function add(x : string){
return x + 4;
}
add("5");
add("6");

8
src/OperationBuffer.js Normal file
View File

@@ -0,0 +1,8 @@
/* @flow */
class OperationBuffer { //eslint-disable-line no-unused-vars
i : number;
constructor () {
this.i = 4;
}
}

View File

@@ -0,0 +1,13 @@
/* @flow */
/*eslint-env browser,jasmine,console */
describe("Operation Buffer", function() {
var OB = new OperationBuffer(void 0);
it("contains spec with an expectation", function(done) {
setTimeout(function(){
done();
}, 1000);
expect(OB.i).toBe(4);
});
});

View File

@@ -1,4 +1 @@
/* @flow */
/* global Buffer */
export default Buffer;