Skip to content

Commit ee6c104

Browse files
author
Will Binns-Smith
committed
Add tests for when a Symbol polyfill is present on the page
1 parent 9364e7d commit ee6c104

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ script:
1212
- 'npm test'
1313
# Run browser tests on one node version.
1414
- 'if [ "${TRAVIS_PULL_REQUEST}" = "false" ] && [ "${TRAVIS_NODE_VERSION}" = "stable" ]; then npm run test:browsers; fi'
15+
- 'if [ "${TRAVIS_PULL_REQUEST}" = "false" ] && [ "${TRAVIS_NODE_VERSION}" = "stable" ]; then npm run test:browsers:polyfills; fi'
1516
addons:
1617
sauce_connect: true
1718
hosts:

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
},
1818
"devDependencies": {
1919
"airtap": "~1.0.0",
20+
"core-js": "^3.6.5",
2021
"is-async-supported": "~1.2.0",
2122
"object.assign": "~4.1.0",
2223
"object.entries": "^1.1.0",
@@ -40,6 +41,8 @@
4041
"scripts": {
4142
"test": "node test/node/index.js",
4243
"test:browsers": "airtap test/browser/index.js",
44+
"test:browsers:with-polyfills": "airtap test/browser/with-polyfills.js",
45+
"test:browsers:with-polyfills:local": "npm run test:browsers:with-polyfills -- --local",
4346
"test:browsers:local": "npm run test:browsers -- --local"
4447
}
4548
}

test/browser/with-polyfills.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
require('core-js');
2+
require('./index.js');

0 commit comments

Comments
 (0)