From 1309e462efc4a7bbdf538e9d209133c1b3c138a6 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Thu, 25 Oct 2018 22:22:55 +0200 Subject: Added authentication and post endpoint --- test/services/posts.test.js | 10 ++++++++++ test/services/users.test.js | 10 ++++++++++ 2 files changed, 20 insertions(+) create mode 100644 test/services/posts.test.js create mode 100644 test/services/users.test.js (limited to 'test/services') diff --git a/test/services/posts.test.js b/test/services/posts.test.js new file mode 100644 index 0000000..a4bdd63 --- /dev/null +++ b/test/services/posts.test.js @@ -0,0 +1,10 @@ +const assert = require('assert'); +const app = require('../../src/app'); + +describe('\'posts\' service', () => { + it('registered the service', () => { + const service = app.service('posts'); + + assert.ok(service, 'Registered the service'); + }); +}); diff --git a/test/services/users.test.js b/test/services/users.test.js new file mode 100644 index 0000000..cc555e5 --- /dev/null +++ b/test/services/users.test.js @@ -0,0 +1,10 @@ +const assert = require('assert'); +const app = require('../../src/app'); + +describe('\'users\' service', () => { + it('registered the service', () => { + const service = app.service('users'); + + assert.ok(service, 'Registered the service'); + }); +}); -- cgit v1.2.3