From 5b602a467f47b4e85946c40749c102a13a4f09dc Mon Sep 17 00:00:00 2001 From: Tim Wienk Date: Wed, 23 Sep 2015 15:25:40 +0200 Subject: [PATCH] Tests: Make server specFiles somewhat more relevant. Also includes sinon in server spec runner, since the newly added spec files use it. --- Tests/gruntfile-options.js | 2 +- Tests/server-tests.js | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/Tests/gruntfile-options.js b/Tests/gruntfile-options.js index 9091ad41..6a2a9162 100644 --- a/Tests/gruntfile-options.js +++ b/Tests/gruntfile-options.js @@ -10,7 +10,7 @@ var sauceBrowsers = JSON.parse(fs.readFileSync('Tests/browsers.json')); var serverBuildOptions = JSON.parse(fs.readFileSync('Tests/dist-tasks.json')).build.server.options; var serverBuild = { modules: serverBuildOptions.only, - specFiles: ['Specs/Core/*.js', 'Specs/Core/*.js', 'Specs/Core/*.js', 'Specs/Core/*.js', 'Specs/Core/*.js'], + specFiles: ['Specs/Core/*.js', 'Specs/Class/*.js', 'Specs/Types/*.js', 'Specs/Utilities/JSON.js'], strip: serverBuildOptions.strip } diff --git a/Tests/server-tests.js b/Tests/server-tests.js index 6540ca81..971ea0ce 100644 --- a/Tests/server-tests.js +++ b/Tests/server-tests.js @@ -1,6 +1,11 @@ "use strict"; -var Jasmine = require('jasmine'); +var Jasmine = require('jasmine'), + sinon = require('sinon'); + +function injectLibraries(object){ + object.sinon = sinon; +} module.exports = function(cb){ @@ -17,6 +22,9 @@ module.exports = function(cb){ jasmine.configureDefaultReporter({ showColors: true }); + + injectLibraries(global); + jasmine.onComplete(function(passed){ if(passed) cb(); else process.exit(1); -- 2.11.4.GIT