diff --git a/package.json b/package.json index 32b1a89..ebf7da7 100644 --- a/package.json +++ b/package.json @@ -30,6 +30,10 @@ "eslint": "^4.6.1", "eslint-config-airbnb-base": "^12.0.0", "eslint-plugin-import": "^2.7.0", + "jest": "^22.2.2", "pre-commit": "^1.2.2" - } + }, + "scripts": { + "test": "jest" + } } diff --git a/test/hello.test.js b/test/hello.test.js new file mode 100644 index 0000000..a9c9730 --- /dev/null +++ b/test/hello.test.js @@ -0,0 +1,8 @@ +const spreadsheet = require('../googleSpreadsheet'); + +function sum(a, b) { + return a + b; +} +test('test rowToObject', () => { + expect(sum(1, 2)).toBe(3); +});