Skip to content

Commit f63add8

Browse files
committed
fixed failing tests caused by open change
1 parent 6d51e1b commit f63add8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/selianize/__tests__/__snapshots__/testcase.spec.js.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Object {
1111

1212
exports[`test case code emitter should emit a test with a single command 1`] = `
1313
Object {
14-
"function": "tests[\\"example test case\\"] = async (driver, vars, opts = {}) => {await driver.get((new URL(\\"/\\", BASE_URL)).href);}",
14+
"function": "tests[\\"example test case\\"] = async (driver, vars, opts = {}) => {await driver.get((new URL(\`/\`, BASE_URL)).href);}",
1515
"id": "1",
1616
"name": "example test case",
1717
"test": "it(\\"example test case\\", async () => {await tests[\\"example test case\\"](driver, vars);expect(true).toBeTruthy();});",
@@ -20,7 +20,7 @@ Object {
2020

2121
exports[`test case code emitter should emit a test with multiple commands 1`] = `
2222
Object {
23-
"function": "tests[\\"example test case\\"] = async (driver, vars, opts = {}) => {await driver.get((new URL(\\"/\\", BASE_URL)).href);await driver.get((new URL(\\"/test\\", BASE_URL)).href);await driver.get((new URL(\\"/example\\", BASE_URL)).href);}",
23+
"function": "tests[\\"example test case\\"] = async (driver, vars, opts = {}) => {await driver.get((new URL(\`/\`, BASE_URL)).href);await driver.get((new URL(\`/test\`, BASE_URL)).href);await driver.get((new URL(\`/example\`, BASE_URL)).href);}",
2424
"id": "1",
2525
"name": "example test case",
2626
"test": "it(\\"example test case\\", async () => {await tests[\\"example test case\\"](driver, vars);expect(true).toBeTruthy();});",

packages/selianize/__tests__/command.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ describe('command code emitter', () => {
151151
value: '',
152152
}
153153
return expect(CommandEmitter.emit(command)).resolves.toBe(
154-
`await driver.get((new URL("${command.target}", BASE_URL)).href);`
154+
`await driver.get((new URL(\`${command.target}\`, BASE_URL)).href);`
155155
)
156156
})
157157
it('should emit `open` with absolute url', () => {

0 commit comments

Comments
 (0)