From 96b8501a23543da178c8f969ebc97ab47ad8f266 Mon Sep 17 00:00:00 2001 From: kazk Date: Fri, 18 Aug 2017 12:49:32 -0700 Subject: [PATCH] Fix invalid reference `test.framework` --- lib/runners/swift.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/runners/swift.js b/lib/runners/swift.js index 79b2b746..c5e367b8 100644 --- a/lib/runners/swift.js +++ b/lib/runners/swift.js @@ -1,3 +1,5 @@ +"use strict"; + const shovel = require('../shovel'); const exec = require('child_process').exec; const fs = require('fs'); @@ -33,7 +35,7 @@ module.exports.run = function run(opts, cb) { testIntegration: function(runCode, fail) { if (opts.testFramework != 'xctest') - throw new Error(`test framework ${test.framework} is not supported`); + throw new Error(`Test framework '${opts.testFramework}' is not supported`); const args = [ "swiftc",