update
This commit is contained in:
parent
c7a6e74dd9
commit
d37d0ef9af
@ -8,6 +8,6 @@
|
||||
},
|
||||
"parser": "babel-eslint",
|
||||
"globals": {
|
||||
"Buffer": true
|
||||
"OperationBuffer": true
|
||||
}
|
||||
}
|
||||
|
@ -1,8 +1,5 @@
|
||||
[ignore]
|
||||
./build_node
|
||||
./build
|
||||
./build_test
|
||||
./y.js
|
||||
|
||||
[include]
|
||||
./src
|
||||
|
@ -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
8
src/OperationBuffer.js
Normal file
@ -0,0 +1,8 @@
|
||||
/* @flow */
|
||||
|
||||
class OperationBuffer { //eslint-disable-line no-unused-vars
|
||||
i : number;
|
||||
constructor () {
|
||||
this.i = 4;
|
||||
}
|
||||
}
|
13
src/OperationBuffer.spec.js
Normal file
13
src/OperationBuffer.spec.js
Normal 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);
|
||||
});
|
||||
});
|
2
y.js
2
y.js
@ -1,2 +1,2 @@
|
||||
"use strict";function _classCallCheck(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function add(n){return n+4}var Buffer=function n(){_classCallCheck(this,n),this.i=4};add("5"),add("6"),describe("A suite",function(){it("contains spec with an expectation",function(){expect(!0).toBe(!0)})});
|
||||
"use strict";function _classCallCheck(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}var OperationBuffer=function n(){_classCallCheck(this,n),this.i=4};describe("Operation Buffer",function(){var n=new OperationBuffer(void 0);window.console.log(n),it("contains spec with an expectation",function(n){setTimeout(function(){n()},1e3),expect(!0).toBe(!0)})});
|
||||
//# sourceMappingURL=y.js.map
|
2
y.js.map
2
y.js.map
@ -1 +1 @@
|
||||
{"version":3,"sources":["y.js","Buffer.js","Buffer.spec.js"],"names":["_classCallCheck","instance","Constructor","TypeError","add","x","Buffer","this","i","describe","it","expect","toBe"],"mappings":"AAGA,YAEA,SAASA,iBAAgBC,EAAUC,GAAe,KAAMD,YAAoBC,IAAgB,KAAM,IAAIC,WAAU,qCCMhH,QAAAC,KAAAC,GACA,MAAAA,GAAA,EDLA,GCJAC,QAEA,QAFAA,KDKEN,gBAAgBO,KCLlBD,GAGAC,KAAAC,EAAA,EAUAJ,KAAA,KACAA,IAAA,KCdAK,SAAA,UAAA,WACAC,GAAA,oCAAA,WACAC,QAAA,GAAAC,MAAA","file":"y.js","sourcesContent":["/* @flow */\n/* global Buffer */\n\nexport default Buffer;\n","/* @flow */\n/* global Buffer */\n\nclass Buffer { //eslint-disable-line no-unused-vars\n i : number;\n constructor () {\n this.i = 4;\n }\n}\n\n\nfunction add(x : string){\n return x + 4;\n}\n\n\nadd(\"5\");\nadd(\"6\");\n","/* @flow */\n/*eslint-env jasmine */\n\ndescribe(\"A suite\", function() {\n it(\"contains spec with an expectation\", function() {\n expect(true).toBe(true);\n });\n});\n"],"sourceRoot":"/source/"}
|
||||
{"version":3,"sources":["y.js","OperationBuffer.js","OperationBuffer.spec.js"],"names":["_classCallCheck","instance","Constructor","TypeError","OperationBuffer","this","i","describe","OB","window","console","log","it","done","setTimeout","expect","toBe"],"mappings":"AAEA,YAEA,SAASA,iBAAgBC,EAAUC,GAAe,KAAMD,YAAoBC,IAAgB,KAAM,IAAIC,WAAU,qCAEhH,GCJAC,iBAEA,QAFAA,KDKEJ,gBAAgBK,KCLlBD,GAGAC,KAAAC,EAAA,ECFAC,UAAA,mBAAA,WACA,GAAAC,GAAA,GAAAJ,iBAAA,OACAK,QAAAC,QAAAC,IAAAH,GAEAI,GAAA,oCAAA,SAAAC,GACAC,WAAA,WACAD,KACA,KACAE,QAAA,GAAAC,MAAA","file":"y.js","sourcesContent":["/* @flow */\n","/* @flow */\n\nclass OperationBuffer { //eslint-disable-line no-unused-vars\n i : number;\n constructor () {\n this.i = 4;\n }\n}\n","/* @flow */\n/*eslint-env browser,jasmine */\n\ndescribe(\"Operation Buffer\", function() {\n var OB = new OperationBuffer(void 0);\n window.console.log(OB);\n\n it(\"contains spec with an expectation\", function(done) {\n setTimeout(function(){\n done();\n }, 1000);\n expect(true).toBe(true);\n });\n});\n"],"sourceRoot":"/source/"}
|
Loading…
x
Reference in New Issue
Block a user