From 96d3332165b444564caca2af21ca544d6d8d236f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Bajto=C5=A1?= Date: Fri, 23 May 2014 19:18:11 +0200 Subject: [PATCH] fixup: add a stub test --- package.json | 6 +++++- test/smoke.test.js | 12 ++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 test/smoke.test.js diff --git a/package.json b/package.json index 19be599e..cf2e570a 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,8 @@ }, "main": "index.js", "scripts": { - "pretest": "jshint ." + "pretest": "jshint .", + "test": "mocha" }, "license": { "name": "Dual MIT/StrongLoop", @@ -21,5 +22,8 @@ }, "dependencies": { "async": "^0.9.0" + }, + "devDependencies": { + "mocha": "^1.19.0" } } diff --git a/test/smoke.test.js b/test/smoke.test.js new file mode 100644 index 00000000..70f742b6 --- /dev/null +++ b/test/smoke.test.js @@ -0,0 +1,12 @@ +var assert = require('assert'); +var connector = require('../'); + +describe('loopback-connector', function() { + it('exports Connector', function() { + assert(connector.Connector); + }); + + it('exports SqlConnector', function() { + assert(connector.SqlConnector); + }); +});