Skip to content

Commit

Permalink
test: delete that breaks on macos
Browse files Browse the repository at this point in the history
  • Loading branch information
vsgoulart committed Feb 12, 2025
1 parent bbe3595 commit 3394fc3
Showing 1 changed file with 0 additions and 32 deletions.
32 changes: 0 additions & 32 deletions packages/form-js-playground/test/spec/JSONEditor.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -312,38 +312,6 @@ describe('JSONEditor', function () {
expect(completionDisplayLabels).to.include('"baz"');
});
});

it('should suggest property completion after comma', async function () {
// given
const initialValue = '{ "foo": "bar",\n }';
const variables = ['foobar', 'baz'];

const editor = new JSONEditor();
editor.setValue(initialValue);
editor.setVariables(variables);

const cm = editor.getView();

// move cursor after the comma and newline
select(cm, 15);

// when
startCompletion(cm);

// then
await expectEventually(() => {
const completions = currentCompletions(cm.state);
expect(completions).to.have.length(2);

const completionLabels = completions.map(({ label }) => label);
const completionDisplayLabels = completions.map(({ displayLabel }) => displayLabel);

expect(completionLabels).to.include('"foobar": ');
expect(completionLabels).to.include('"baz": ');
expect(completionDisplayLabels).to.include('"foobar"');
expect(completionDisplayLabels).to.include('"baz"');
});
});
});
});

Expand Down

0 comments on commit 3394fc3

Please sign in to comment.