Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
26 lines
572 B
JavaScript
Executable file
26 lines
572 B
JavaScript
Executable file
/* global assert */
|
|
'use strict';
|
|
suite('optsfile', function() {
|
|
var optsfile = require('../lib/optsfileparser');
|
|
|
|
/**
|
|
* @param {String} file to load with optsfile relative to fixtures.
|
|
*/
|
|
function load(file) {
|
|
return optsfile(__dirname + '/fixtures/' + file);
|
|
}
|
|
|
|
test('parsing valid optsfile', function() {
|
|
assert.deepEqual(
|
|
load('testops.opts'),
|
|
['--magicfoobar', '--dodad']
|
|
);
|
|
});
|
|
|
|
test('optsfile with newlines', function() {
|
|
assert.deepEqual(
|
|
load('testopsnewline.opts'),
|
|
['--one', '--two']
|
|
);
|
|
});
|
|
});
|