message: Parse expected result
diff: @@ -242,10 +242,17 @@ function test() {
  await extractVariable(editor);
  - expect(editor.code).toBe(expected);
  + const {
  + code: expectedCode,
  + selection: expectedSelection
  + } = new InMemoryEditor(expected);
  + expect(editor.code).toBe(expectedCode);
  if (expectedPosition) {
  expect(editor.position).toStrictEqual(expectedPosition);
  }
  + if (!expectedSelection.isCursorAtTopOfDocument) {
  + expect(editor.selection).toStrictEqual(expectedSelection);
  + }
  }
  );
  