Skip to content
This repository was archived by the owner on Mar 20, 2024. It is now read-only.

Commit b117331

Browse files
committed
chore(specs): Refactor specs to work with new return payload from driver
I _think_ this is updated to reflect the new return types (we used to get `null` but now get an object with a uuid `sessionId` and a `result` property.
1 parent 09aae00 commit b117331

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

spec/command_tests/table_spec.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,14 @@ describe('table tests', () => {
8181
let driver = driverFactory();
8282
(driver as any)[commandName].apply(driver, testcase.args || []).then(
8383
(results: Testcase) => {
84-
expect(results.result).toEqual(testcase.result == null ? null : testcase.result);
84+
let result = results.result
85+
86+
if (testcase.result != null) {
87+
expect(result).toEqual(testcase.result);
88+
} else if (result != null) {
89+
expect(result.sessionId).toBeDefined();
90+
expect(result.status).toEqual(0);
91+
}
8592
if (testcase.session) {
8693
for (let varname in testcase.session) {
8794
expect((results.session as any)[varname]).

0 commit comments

Comments
 (0)