Skip to content

Commit 7b33e90

Browse files
committed
upgrade to intern 2.1
1 parent e5aaae0 commit 7b33e90

File tree

4 files changed

+17
-23
lines changed

4 files changed

+17
-23
lines changed

Gruntfile.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,18 @@ module.exports = function (grunt) {
1414
jshint: {
1515
all: filesList,
1616
options: {
17-
jshintrc: ".jshintrc",
18-
},
17+
jshintrc: ".jshintrc"
18+
}
1919
},
2020

2121
lineending: {
2222
all: {
2323
options: {
24-
eol: 'crlf',
24+
eol: "crlf",
2525
overwrite: true
2626
},
2727
files: {
28-
'': filesList
28+
"": filesList
2929
}
3030
}
3131
},
@@ -46,14 +46,14 @@ module.exports = function (grunt) {
4646
options: {
4747
runType: "runner",
4848
config: "tests/intern",
49-
reporters: ["console"]
49+
reporters: ["runner"]
5050
}
5151
},
5252
local: {
5353
options: {
54-
runType: 'runner', // defaults to 'client'
55-
config: 'tests/intern.local',
56-
reporters: ['console', 'lcov']
54+
runType: "runner", // defaults to "client"
55+
config: "tests/intern.local",
56+
reporters: ["runner"]
5757
}
5858
}
5959
}
@@ -63,7 +63,7 @@ module.exports = function (grunt) {
6363
grunt.loadNpmTasks("grunt-contrib-jshint");
6464
grunt.loadNpmTasks("grunt-jsbeautifier");
6565
grunt.loadNpmTasks("grunt-lineending");
66-
grunt.loadNpmTasks('intern');
66+
grunt.loadNpmTasks("intern");
6767

6868

6969
// By default, lint and run all tests.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"grunt-contrib-jshint": "~0.6.0",
88
"grunt-jsbeautifier": "~0.2.2",
99
"requirejs": "~2.1.10",
10-
"intern": "~1.6.2",
10+
"intern": "2.1.x",
1111
"grunt-lineending": "^0.2.2"
1212
},
1313
"licenses": [
@@ -17,4 +17,4 @@
1717
}
1818
],
1919
"private": true
20-
}
20+
}

tests/intern.js

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ define({
66
// The port on which the instrumenting proxy will listen
77
proxyPort: 9000,
88

9-
proxyUrl: "http://127.0.0.1:9000/",
10-
119
// Browsers to run integration testing against. Note that version numbers must be strings if used with Sauce
1210
// OnDemand. Options that will be permutated are browserName, version, platform, and platformVersion; any other
1311
// capabilities options specified for an environment will be copied as-is
@@ -74,15 +72,7 @@ define({
7472
maxConcurrency: 3,
7573

7674
// Whether or not to start Sauce Connect before running tests
77-
useSauceConnect: true,
78-
79-
// Connection information for the remote WebDriver service. If using Sauce Labs, keep your username and password
80-
// in the SAUCE_USERNAME and SAUCE_ACCESS_KEY environment variables unless you are sure you will NEVER be
81-
// publishing this configuration file somewhere
82-
webdriver: {
83-
host: "localhost",
84-
port: 4444
85-
},
75+
tunnel: "SauceLabsTunnel",
8676

8777
loader: {
8878
baseUrl: typeof window !== "undefined" ? "../../.." : ".."

tests/intern.local.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@
22
define([
33
"./intern"
44
], function (intern) {
5-
intern.useSauceConnect = false;
5+
intern.tunnel = "NullTunnel";
6+
intern.tunnelOptions = {
7+
hostname: "localhost",
8+
port: 4444
9+
};
610

711
intern.environments = [{
812
browserName: "firefox"

0 commit comments

Comments
 (0)