diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..6449588 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,12 @@ +language: node_js +sudo: false +node_js: + - 10 + - 9 + - 8 + - 7 + - 6 +install: + - npm install +script: + - npm test \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..b5109d9 --- /dev/null +++ b/README.md @@ -0,0 +1,5 @@ +# Swagger Contracts Generator + +[![Build Status](https://travis-ci.org/SkrzypMajster/swagger-contracts-generator.svg?branch=develop)](https://travis-ci.org/SkrzypMajster/swagger-contracts-generator) + +[![Coverage Status](https://coveralls.io/repos/github/SkrzypMajster/swagger-contracts-generator/badge.svg?branch=develop)](https://coveralls.io/github/SkrzypMajster/swagger-contracts-generator?branch=develop) \ No newline at end of file diff --git a/package.json b/package.json index 4739f8f..7303c11 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "", "main": "index.js", "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" + "test": "mocha" }, "repository": { "type": "git", @@ -19,5 +19,8 @@ "homepage": "https://github.com/SkrzypMajster/swagger-contracts-generator#readme", "dependencies": { "swagger-ts-generator": "^1.1.56" + }, + "devDependencies": { + "mocha": "^6.0.2" } } diff --git a/test/test.js b/test/test.js new file mode 100644 index 0000000..df4f92e --- /dev/null +++ b/test/test.js @@ -0,0 +1,9 @@ +var assert = require('assert'); + +describe('Array', function () { + describe('#indexOf()', function () { + it('should return -1 when the value is not present', function () { + assert.equal([1, 2, 3].indexOf(4), -1); + }); + }); +}); \ No newline at end of file