BigW Consortium Gitlab

monaco_loader_spec.js 466 Bytes
Newer Older
1
import monacoContext from 'monaco-editor/dev/vs/loader';
2
import monacoLoader from '~/repo/monaco_loader';
3

4
describe('MonacoLoader', () => {
5
  it('calls require.config and exports require', () => {
6
    expect(monacoContext.require.getConfig()).toEqual(jasmine.objectContaining({
7 8 9
      paths: {
        vs: `${__webpack_public_path__}monaco-editor/vs`, // eslint-disable-line camelcase
      },
10 11
    }));
    expect(monacoLoader).toBe(monacoContext.require);
12 13
  });
});