UNPKG

node-deadline

Version:

Module to interface with Deadline Compute Management System by Thinkbox Software

31 lines (23 loc) 723 B
/*jshint jasmine: true*/ var deadline = require( "../index.js" ), settings = require( "../lib/settings" ), utils = require( "../lib/utils/utils" ); describe( "deadline initialization", function() { beforeAll( function() { settings.test = true; } ); it( "should fail with no host specified", function() { expect( function() { deadline.init(); } ).toThrow(); } ); it( "should change the host globally", function() { deadline.init( "I am the host" ); expect( settings.host ).toEqual( "I am the host" ); } ); it( "should fail when options are unrecognized", function() { expect( function() { deadline.init( { invalid: "hello" } ); } ).toThrow(); } ); } );