feat: enhance native window.open to match the custom implementation's behavior (#19703)
Co-authored-by: Andy Locascio <andy@slack-corp.com>
This commit is contained in:
parent
b1f4ac00f0
commit
74372d65ae
20 changed files with 350 additions and 143 deletions
|
@ -2,7 +2,7 @@ import { expect } from 'chai';
|
|||
|
||||
describe('feature-string parsing', () => {
|
||||
it('is indifferent to whitespace around keys and values', () => {
|
||||
const parseFeaturesString = require('../lib/common/parse-features-string');
|
||||
const { parseFeaturesString } = require('../lib/common/parse-features-string');
|
||||
const checkParse = (string: string, parsed: Record<string, string | boolean>) => {
|
||||
const features: Record<string, string | boolean> = {};
|
||||
parseFeaturesString(string, (k: string, v: any) => { features[k] = v; });
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue