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

14 lines
466 B
JavaScript
Raw Normal View History

2017-08-01 07:59:33 -04:00
import monacoContext from 'monaco-editor/dev/vs/loader';
import monacoLoader from '~/repo/monaco_loader';
2017-08-01 07:59:33 -04:00
2017-07-20 07:08:47 -04:00
describe('MonacoLoader', () => {
2017-08-01 07:59:33 -04:00
it('calls require.config and exports require', () => {
expect(monacoContext.require.getConfig()).toEqual(jasmine.objectContaining({
2017-08-01 07:59:33 -04:00
paths: {
vs: `${__webpack_public_path__}monaco-editor/vs`, // eslint-disable-line camelcase
},
}));
expect(monacoLoader).toBe(monacoContext.require);
2017-07-20 07:08:47 -04:00
});
});