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

Commit fd370b0

Browse files
committed
Revert "chore(specs): Refactor specs to work with new return payload from driver"
This reverts commit b117331.
1 parent b117331 commit fd370b0

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

spec/command_tests/table_spec.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -81,14 +81,7 @@ describe('table tests', () => {
8181
let driver = driverFactory();
8282
(driver as any)[commandName].apply(driver, testcase.args || []).then(
8383
(results: Testcase) => {
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-
}
84+
expect(results.result).toEqual(testcase.result == null ? null : testcase.result);
9285
if (testcase.session) {
9386
for (let varname in testcase.session) {
9487
expect((results.session as any)[varname]).

0 commit comments

Comments
 (0)