Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(test): adjust test to pass in Safari browser #3645

Merged
merged 1 commit into from
Feb 2, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 6 additions & 6 deletions test/client/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ const launchers = {
os: 'Windows',
os_version: '10'
},
// bs_safari: {
// base: 'BrowserStack',
// browser: 'Safari',
// os: 'OS X',
// os_version: 'Big Sur'
// },
bs_safari: {
base: 'BrowserStack',
browser: 'Safari',
os: 'OS X',
os_version: 'Big Sur'
},
bs_ie: {
base: 'BrowserStack',
browser: 'IE',
Expand Down
4 changes: 3 additions & 1 deletion test/client/stringify.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ describe('stringify', function () {
if (window.Proxy) {
it('should serialize proxied functions', function () {
var defProxy = new Proxy(function (d, e, f) { return 'whatever' }, {})
assert.deepStrictEqual(stringify(defProxy), 'function () { ... }')
// In Safari stringified Proxy object has ProxyObject as a name, but
// in other browsers it does not.
assert.deepStrictEqual(/^function (ProxyObject)?\(\) { ... }$/.test(stringify(defProxy)), true)
})
}

Expand Down