[Pkg-javascript-commits] [node-stack-utils] 14/67: improve tests / add a few more

Bastien Roucariès rouca at moszumanska.debian.org
Thu Sep 7 09:53:02 UTC 2017


This is an automated email from the git hooks/post-receive script.

rouca pushed a commit to branch master
in repository node-stack-utils.

commit 2f5cf779b7103307747b8880b93ba9b47ed03b7a
Author: James Talmage <james at talmage.io>
Date:   Mon Jan 4 23:54:27 2016 -0500

    improve tests / add a few more
---
 test.js | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/test.js b/test.js
index 1230a38..9966bf1 100644
--- a/test.js
+++ b/test.js
@@ -238,11 +238,18 @@ test('parseLine', t => {
 
 	t.same(stack.parseLine('foo'), null, 'should not match');
 
-	t.same(stack.parseLine('    at foo (/user/dev/project/foo.js:3:8)'), {
+	t.same(stack.parseLine('    at bar (/user/dev/project/foo.js:3:8)'), {
 		file: 'foo.js',
 		line: 3,
 		column: 8,
-		function: 'foo'
+		function: 'bar'
+	});
+
+	t.same(stack.parseLine('    at SomeClass.someFunc (/user/dev/project/foo.js:3:8)'), {
+		file: 'foo.js',
+		line: 3,
+		column: 8,
+		function: 'SomeClass.someFunc'
 	});
 
 	t.same(stack.parseLine('    at foo (/some/other/dir/file.js:3:8)'), {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-stack-utils.git



More information about the Pkg-javascript-commits mailing list