]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - apps/tidep0084.git/blobdiff - prebuilt/iot-gateway/node_modules/brfs/test/tr.js
Updated Sensor To Cloud design to have an easy to use setup GUI on the
[apps/tidep0084.git] / prebuilt / iot-gateway / node_modules / brfs / test / tr.js
diff --git a/prebuilt/iot-gateway/node_modules/brfs/test/tr.js b/prebuilt/iot-gateway/node_modules/brfs/test/tr.js
deleted file mode 100644 (file)
index 3a9b263..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-var test = require('tap').test;
-var browserify = require('browserify');
-var through = require('through');
-
-var vm = require('vm');
-var fs = require('fs');
-var path = require('path');
-
-test('parse non-js, non-json files', function (t) {
-    t.plan(2);
-    
-    var b = browserify();
-    b.add(__dirname + '/files/tr.beep');
-    b.transform(function (file) {
-        var buffers = [];
-        if (!/\.beep$/.test(file)) return through();
-        return through(write, end);
-        
-        function write (buf) { buffers.push(buf) }
-        function end () {
-            var src = Buffer.concat(buffers).toString('utf8');
-            this.queue(src.replace(/\bFN\b/g, 'function'));
-            this.queue(null);
-        }
-    });
-    b.transform(path.dirname(__dirname));
-    
-    var bs = b.bundle(function (err, src) {
-        if (err) t.fail(err);
-        vm.runInNewContext(src, { console: { log: log } });
-    });
-    bs.on('transform', function (tr) {
-        tr.on('file', function (file) {
-            t.equal(file, __dirname + '/files/tr.html');
-        });
-    });
-    
-    function log (msg) {
-        t.equal(13, msg);
-    }
-});