Add tests of parseVariantAnalysisQueryLanguage

This commit is contained in:
Robert
2022-09-23 12:31:11 +01:00
parent 91344a74f6
commit 80862944d8

View File

@@ -0,0 +1,12 @@
import { expect } from 'chai';
import { parseVariantAnalysisQueryLanguage, VariantAnalysisQueryLanguage } from '../../../../remote-queries/shared/variant-analysis';
describe('parseVariantAnalysisQueryLanguage', () => {
it('parses a valid language', () => {
expect(parseVariantAnalysisQueryLanguage('javascript')).to.be(VariantAnalysisQueryLanguage.Javascript);
});
it('returns undefined for an valid language', () => {
expect(parseVariantAnalysisQueryLanguage('rubbish')).to.not.exist;
});
});