diff options
Diffstat (limited to 'deps/npm/node_modules/readable-stream/node_modules/inline-process-browser/node_modules/falafel/test/custom-parser.js')
-rw-r--r-- | deps/npm/node_modules/readable-stream/node_modules/inline-process-browser/node_modules/falafel/test/custom-parser.js | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/deps/npm/node_modules/readable-stream/node_modules/inline-process-browser/node_modules/falafel/test/custom-parser.js b/deps/npm/node_modules/readable-stream/node_modules/inline-process-browser/node_modules/falafel/test/custom-parser.js deleted file mode 100644 index 2ae09eca75..0000000000 --- a/deps/npm/node_modules/readable-stream/node_modules/inline-process-browser/node_modules/falafel/test/custom-parser.js +++ /dev/null @@ -1,42 +0,0 @@ -var falafel = require('../'); -var acorn = require('acorn-jsx'); -var test = require('tape'); - -test('custom parser', function (t) { - - var src = '(function() { var f = {a: "b"}; var a = <div {...f} className="test"></div>; })()'; - - var nodeTypes = [ - 'Identifier', - 'Identifier', - 'Literal', - 'Property', - 'ObjectExpression', - 'VariableDeclarator', - 'VariableDeclaration', - 'Identifier', - 'Identifier', - 'JSXSpreadAttribute', - 'JSXIdentifier', - 'Literal', - 'JSXAttribute', - 'JSXIdentifier', - 'JSXOpeningElement', - 'JSXIdentifier', - 'JSXClosingElement', - 'JSXElement', - 'VariableDeclarator', - 'VariableDeclaration', - 'BlockStatement', - 'FunctionExpression', - 'CallExpression', - 'ExpressionStatement', - 'Program' - ]; - - t.plan(nodeTypes.length); - - var output = falafel(src, {parser: acorn, ecmaVersion: 6, plugins: { jsx: true }}, function(node) { - t.equal(node.type, nodeTypes.shift()); - }); -}); |