gitlab-org--gitlab-foss/spec/javascripts/ide/monaco_loader_spec.js

16 lines
486 B
JavaScript
Raw Normal View History

import monacoContext from 'monaco-editor/dev/vs/loader';
2018-03-20 10:16:38 -04:00
import monacoLoader from '~/ide/monaco_loader';
describe('MonacoLoader', () => {
it('calls require.config and exports require', () => {
2018-03-20 10:16:38 -04:00
expect(monacoContext.require.getConfig()).toEqual(
jasmine.objectContaining({
paths: {
vs: `${__webpack_public_path__}monaco-editor/vs`, // eslint-disable-line camelcase
},
}),
);
expect(monacoLoader).toBe(monacoContext.require);
});
});