sioux-offscreen
Version:
An off screen navigation item. Similar to the menu of the Facebook and Path app
16 lines (13 loc) • 418 B
JavaScript
var test = require('tap').test;
var fromArgs = require('../bin/args.js');
var path = require('path');
var vm = require('vm');
test('bundle from an arguments array', function (t) {
t.plan(1);
var b = fromArgs([ __dirname + '/entry/two.js', '-s', 'XYZ' ]);
b.bundle(function (err, src) {
var c = { window: {} };
vm.runInNewContext(src, c);
t.equal(c.window.XYZ, 2);
});
});