[Pkg-javascript-commits] [node-lexical-scope] 31/83: named arg test was actually fine

Bastien Roucariès rouca at moszumanska.debian.org
Fri Dec 15 09:45:48 UTC 2017


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

rouca pushed a commit to branch master
in repository node-lexical-scope.

commit 849ae8ce14383db43af64c9ae16262cb7b890970
Author: James Halliday <mail at substack.net>
Date:   Sat Mar 30 00:52:43 2013 -0700

    named arg test was actually fine
---
 test/argument.js                   | 13 -------------
 test/{argument.js => named_arg.js} | 15 +--------------
 2 files changed, 1 insertion(+), 27 deletions(-)

diff --git a/test/argument.js b/test/argument.js
index df97e62..3ba102d 100644
--- a/test/argument.js
+++ b/test/argument.js
@@ -15,16 +15,3 @@ test('parameters from inline arguments', function (t) {
         'body.0.argument': [ 'c' ]
     });
 });
-
-test('named argument parameter', function (t) {
-    t.plan(3);
-    
-    var scope = detect(src);
-    t.same(scope.globals.implicit, []);
-    t.same(scope.globals.exported, []);
-    t.same(scope.locals, {
-        'body.0': [ 'a', 'x' ],
-        '': [ 'foo' ],
-        'body.0.argument': [ 'c' ]
-    });
-});
diff --git a/test/argument.js b/test/named_arg.js
similarity index 51%
copy from test/argument.js
copy to test/named_arg.js
index df97e62..d1d47b0 100644
--- a/test/argument.js
+++ b/test/named_arg.js
@@ -1,20 +1,7 @@
 var test = require('tape');
 var detect = require('../');
 var fs = require('fs');
-var src = fs.readFileSync(__dirname + '/files/argument.js');
-
-test('parameters from inline arguments', function (t) {
-    t.plan(3);
-    
-    var scope = detect(src);
-    t.same(scope.globals.implicit, []);
-    t.same(scope.globals.exported, []);
-    t.same(scope.locals, {
-        'body.0': [ 'a' ],
-        '': [ 'foo' ],
-        'body.0.argument': [ 'c' ]
-    });
-});
+var src = fs.readFileSync(__dirname + '/files/named_arg.js');
 
 test('named argument parameter', function (t) {
     t.plan(3);

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



More information about the Pkg-javascript-commits mailing list