2018-03-20 10:12:48 -04:00
|
|
|
import monacoContext from 'monaco-editor/dev/vs/loader';
|
2018-03-20 10:16:38 -04:00
|
|
|
import monacoLoader from '~/ide/monaco_loader';
|
2018-03-20 10:12:48 -04:00
|
|
|
|
|
|
|
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
|
|
|
|
},
|
|
|
|
}),
|
|
|
|
);
|
2018-03-20 10:12:48 -04:00
|
|
|
expect(monacoLoader).toBe(monacoContext.require);
|
|
|
|
});
|
|
|
|
});
|