Skip to content

Commit

Permalink
Update test to verify diff model refs
Browse files Browse the repository at this point in the history
  • Loading branch information
zgbpr committed Jul 2, 2024
1 parent 6adc9dc commit 14ae5cb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/wrapper/test/wrapper.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,13 @@ describe('Test MonacoEditorLanguageClientWrapper', () => {
const modelRefs = app?.getModelRefs();
expect(modelRefs?.modelRef).toBeDefined();
expect(modelRefs?.modelRefOriginal).toBeDefined();

const name = modelRefs?.modelRef?.object.name;
const nameOriginal = modelRefs?.modelRefOriginal?.object.name;
expect(name).toBeDefined();
expect(nameOriginal).toBeDefined();
expect(name).not.toEqual(nameOriginal);

app?.disposeApp();
});

Expand Down

0 comments on commit 14ae5cb

Please sign in to comment.