2020-02-24 15:03:21 +01:00
|
|
|
/* global expect */
|
2021-01-13 03:31:00 +01:00
|
|
|
// TODO: reinstate these tests
|
2020-02-24 15:03:21 +01:00
|
|
|
|
2021-01-13 03:31:00 +01:00
|
|
|
// // TODO: update these to use the new parser
|
2020-11-27 19:02:05 +01:00
|
|
|
|
2021-01-13 03:31:00 +01:00
|
|
|
// const path = require('path');
|
2020-02-24 15:03:21 +01:00
|
|
|
|
2021-01-13 03:31:00 +01:00
|
|
|
// const { parseMarkdown } = require('../tools/challenge-md-parser');
|
|
|
|
// const { parseTranslation } = require('./getChallenges');
|
2020-02-24 15:03:21 +01:00
|
|
|
|
2021-01-13 03:31:00 +01:00
|
|
|
// /* eslint-disable max-len */
|
|
|
|
// const {
|
|
|
|
// SIMPLE_TRANSLATION
|
|
|
|
// } = require('../tools/challenge-md-parser/translation-parser/__mocks__/mock-comments');
|
|
|
|
// /* eslint-enable max-len */
|
2020-02-24 15:03:21 +01:00
|
|
|
|
|
|
|
describe('translation parser', () => {
|
2021-01-13 03:31:00 +01:00
|
|
|
it('should pass', () => {
|
|
|
|
expect(true).toBe(true);
|
2020-02-24 15:03:21 +01:00
|
|
|
});
|
|
|
|
});
|
2021-01-13 03:31:00 +01:00
|
|
|
|
|
|
|
// describe('translation parser', () => {
|
|
|
|
// it('should translate known comments in html', () => {
|
|
|
|
// return Promise.all([
|
|
|
|
// parseMarkdown(
|
|
|
|
// path.resolve(__dirname, '__fixtures__/combined-html-comments.md')
|
|
|
|
// ),
|
|
|
|
// parseTranslation(
|
|
|
|
// path.resolve(
|
|
|
|
// __dirname,
|
|
|
|
// '__fixtures__/english/challenge-html-comments.md'
|
|
|
|
// ),
|
|
|
|
// path.resolve(__dirname, '__fixtures__/chinese/challenge.md'),
|
|
|
|
// SIMPLE_TRANSLATION,
|
|
|
|
// 'chinese',
|
|
|
|
// parseMarkdown
|
|
|
|
// )
|
|
|
|
// ]).then(xs => expect(xs[1]).toEqual(xs[0]));
|
|
|
|
// });
|
|
|
|
// it('should translate known comments in jsx', () => {
|
|
|
|
// return Promise.all([
|
|
|
|
// parseMarkdown(
|
|
|
|
// path.resolve(__dirname, '__fixtures__/combined-jsx-comments.md')
|
|
|
|
// ),
|
|
|
|
// parseTranslation(
|
|
|
|
// path.resolve(
|
|
|
|
// __dirname,
|
|
|
|
// '__fixtures__/english/challenge-jsx-comments.md'
|
|
|
|
// ),
|
|
|
|
// path.resolve(__dirname, '__fixtures__/chinese/challenge.md'),
|
|
|
|
// SIMPLE_TRANSLATION,
|
|
|
|
// 'chinese',
|
|
|
|
// parseMarkdown
|
|
|
|
// )
|
|
|
|
// ]).then(xs => expect(xs[1]).toEqual(xs[0]));
|
|
|
|
// });
|
|
|
|
// it('should translate known comments in js', () => {
|
|
|
|
// return Promise.all([
|
|
|
|
// parseMarkdown(
|
|
|
|
// path.resolve(__dirname, '__fixtures__/combined-js-comments.md')
|
|
|
|
// ),
|
|
|
|
// parseTranslation(
|
|
|
|
// path.resolve(
|
|
|
|
// __dirname,
|
|
|
|
// '__fixtures__/english/challenge-js-comments.md'
|
|
|
|
// ),
|
|
|
|
// path.resolve(__dirname, '__fixtures__/chinese/challenge.md'),
|
|
|
|
// SIMPLE_TRANSLATION,
|
|
|
|
// 'chinese',
|
|
|
|
// parseMarkdown
|
|
|
|
// )
|
|
|
|
// ]).then(xs => expect(xs[1]).toEqual(xs[0]));
|
|
|
|
// });
|
|
|
|
// });
|