#2177 Jets upgrade

This commit is contained in:
Knut Sveidqvist
2021-07-15 10:14:35 +02:00
parent 30de90e4f0
commit 1034e1a301
18 changed files with 1148 additions and 1024 deletions

View File

@@ -2,6 +2,8 @@
import { parser } from './parser/classDiagram';
import classDb from './classDb';
const spyOn = jest.spyOn;
describe('class diagram, ', function () {
describe('when parsing an info graph it', function () {
beforeEach(function () {

View File

@@ -2,7 +2,11 @@ import flowDb from '../flowDb';
import flow from './flow';
import filter from 'lodash/filter';
import { setConfig } from '../../../config';
// import DOMPurify from 'dompurify';
// const domPurify = DOMPurify.createDOMPurify(window);
// const clean = DOMPurify.sanitize(dirty);
setConfig({
securityLevel: 'strict'
});

View File

@@ -2,6 +2,8 @@ import flowDb from '../flowDb';
import flow from './flow';
import { setConfig } from '../../../config';
const spyOn = jest.spyOn;
setConfig({
securityLevel: 'strict'
});

View File

@@ -242,7 +242,7 @@ describe('when using the ganttDb', function() {
expect(tasks[5].order).toEqual(5);
expect(tasks[5].id).toEqual('task2');
expect(tasks[5].task).toEqual('Implement parser and jison');
expect(tasks[6].startTime).toEqual(moment('2014-01-10', 'YYYY-MM-DD').toDate());
expect(tasks[6].endTime).toEqual(moment('2014-01-13', 'YYYY-MM-DD').toDate());
expect(tasks[6].order).toEqual(6);

View File

@@ -3,6 +3,7 @@
import { parser } from './gantt';
import ganttDb from '../ganttDb';
const spyOn = jest.spyOn;
const parserFnConstructor = str => {
return () => {
parser.parse(str);