UNPKG

tfs

Version:

NodeJS wrapper for Team Foundation Source Control CLI.

39 lines (35 loc) 895 B
var assert = require('assert'), debug = require('../../lib/utils/debug'), tfs = require('../../lib/tfs'); /** * @version 1.4.1 */ describe('TFS Checkin Tests Suite', function() { var options = { b: [ 'bypass', 'force', 'noprompt', 'recursive', 'saved', 'validate' ], s: [ 'author', 'collection', 'comment', 'login', 'notes', 'override', 'shelveset' ] }; it('SHOULD works with BOOLEAN options', function () { var test = debug.getBooleanAssert(options); assert.equal('checkin ' + process.cwd() + ' ' + test.output, tfs('checkin', null, test.options)); }); it('SHOULD works with STRING options', function () { var test = debug.getStringAssert(options); assert.equal('checkin ' + process.cwd() + ' ' + test.output, tfs('checkin', null, test.options)); }); });