Add test, update rexex pattern and constant name

This commit is contained in:
Mert Akinc
2024-07-26 17:45:23 -05:00
parent a9889ddb31
commit 97b6f33cc2
2 changed files with 18 additions and 3 deletions

View File

@@ -22,6 +22,19 @@ describe('ClearStack', function() {
});
});
describe('in WebKit (Playwright\'s build for Windows)', function() {
usesQueueMicrotaskWithSetTimeout(function() {
return {
navigator: {
userAgent:
'Mozilla/5.0 (Windows NT 6.2; Win64; x64) AppleWebKit/605.1.15 (KHTML, like Gecko)'
},
// queueMicrotask should be used even though MessageChannel is present
MessageChannel: fakeMessageChannel
};
});
});
describe('in browsers other than Safari', function() {
usesMessageChannel(function() {
return {