chained.js 249 B

123456789
  1. var test = require('tap').test;
  2. var detective = require('../');
  3. var fs = require('fs');
  4. var src = fs.readFileSync(__dirname + '/files/chained.js');
  5. test('chained', function (t) {
  6. t.deepEqual(detective(src), [ 'c', 'b', 'a' ]);
  7. t.end();
  8. });