Skip to content

Commit dd3751e

Browse files
author
Matt Gaunt
committed
Uses new token models, adds usePublicVapidKey() and improved integration
tests.
1 parent 9fb3c4c commit dd3751e

File tree

72 files changed

+5740
-2379
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+5740
-2379
lines changed

config/karma.base.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ const config = {
107107

108108
client: {
109109
mocha: {
110-
timeout: 20000,
110+
timeout: 3000,
111111
retries: 3
112112
},
113113

@@ -118,7 +118,7 @@ const config = {
118118
coverageIstanbulReporter: {
119119
dir: path.resolve(process.cwd(), 'coverage/browser/%browser%'),
120120
fixWebpackSourcePaths: true,
121-
reports: ['lcovonly']
121+
reports: ['html', 'lcovonly']
122122
}
123123
};
124124

integration/messaging/test/static/manual-test-server.js renamed to integration/messaging/manual-test-server.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,8 @@
1414
* limitations under the License.
1515
*/
1616

17-
const testServer = require('./test-server');
18-
testServer.start();
17+
const testServer = require('./test/utils/test-server');
18+
testServer
19+
.start()
20+
.then(() => console.log(`Test server: ${testServer.serverAddress}`))
21+
.catch(err => console.error(err));

integration/messaging/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@
33
"private": true,
44
"version": "0.2.1",
55
"scripts": {
6-
"pretest:manual": "node ./download-browsers.js",
7-
"test": "echo 'Automated tests temporarily disabled, run `npm run test:manual` to execute these tests'",
8-
"test:manual": "mocha --retries 3 --exit"
6+
"pretest": "node ./download-browsers.js",
7+
"test": "mocha --exit"
98
},
109
"dependencies": {
1110
"firebase": "4.9.0"
@@ -17,6 +16,7 @@
1716
"geckodriver": "^1.8.0",
1817
"mocha": "^4.0.1",
1918
"node-fetch": "^1.7.2",
20-
"selenium-assistant": "^5.1.0"
19+
"selenium-assistant": "^5.2.0",
20+
"sinon": "^4.1.3"
2121
}
2222
}

integration/messaging/test/send-receive-msg.js

Lines changed: 0 additions & 263 deletions
This file was deleted.

0 commit comments

Comments
 (0)