From 4dd4842c3952fbe44068da767ccda4a4ca5f1ff6 Mon Sep 17 00:00:00 2001 From: Gregor Martynus Date: Tue, 24 Nov 2015 10:42:01 -0500 Subject: [PATCH] test: scopes with "/" test for #7 --- test/specs/index.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/test/specs/index.js b/test/specs/index.js index 3eb5757..7da9066 100644 --- a/test/specs/index.js +++ b/test/specs/index.js @@ -71,5 +71,19 @@ test('derive version number from commits', (t) => { }) }) + t.test('scope with / (#7)', (tt) => { + tt.plan(2) + + analyzer({}, { + commits: [{ + hash: '1234', + message: 'feat(foo/bar): baz' + }] + }, (err, type) => { + tt.error(err) + tt.is(type, 'minor') + }) + }) + t.end() })