mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-22 06:37:56 +01:00
Fix broken tests
This commit is contained in:
parent
e8fc5d4977
commit
516ac88b30
@ -18,7 +18,7 @@
|
||||
import * as web2d from '@wisemapping/web2d';
|
||||
import { $assert, $defined } from '@wisemapping/core-js';
|
||||
import { TopicShape } from '../model/INodeModel';
|
||||
import TopicConfig from '../TopicConfig';
|
||||
import { CONNECTOR_WIDTH } from '../TopicConfig';
|
||||
|
||||
const Shape = {
|
||||
isAtRight(sourcePoint, targetPoint) {
|
||||
@ -124,7 +124,7 @@ const Shape = {
|
||||
}
|
||||
|
||||
// Move a little the position...
|
||||
const offset = TopicConfig.CONNECTOR_WIDTH / 2;
|
||||
const offset = CONNECTOR_WIDTH / 2;
|
||||
if (!isAtRight) {
|
||||
result.x += offset;
|
||||
} else {
|
||||
|
@ -1,4 +1,3 @@
|
||||
import '../../../../libraries/mootools-core-1.4.5';
|
||||
import TestSuite from './TestSuite';
|
||||
import LayoutManager from '../../src/components/layout/LayoutManager';
|
||||
|
||||
|
@ -1,5 +1,4 @@
|
||||
import $ from 'jquery';
|
||||
import '../../../../libraries/mootools-core-1.4.5';
|
||||
import { Designer, LocalStorageManager } from '../../src';
|
||||
|
||||
// FIXME: The tests Map could not be loaded.
|
||||
|
@ -1,18 +1,16 @@
|
||||
import '../../../../libraries/mootools-core-1.4.5';
|
||||
import Events from '../../src/components/Events';
|
||||
|
||||
describe('Events class suite', () => {
|
||||
const TestClass = new Class({
|
||||
Extends: Events,
|
||||
class TestClass extends Events {
|
||||
|
||||
getEvents() {
|
||||
return this.$events;
|
||||
},
|
||||
}
|
||||
|
||||
removeEvents() {
|
||||
this.$events = {};
|
||||
},
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
const expectedChangeFn1 = () => 'change1';
|
||||
const expectedChangeFn2 = () => 'change2';
|
||||
|
@ -1,4 +1,3 @@
|
||||
import '../../../../libraries/mootools-core-1.4.5';
|
||||
import TestSuite from './TestSuite';
|
||||
import LayoutManager from '../../src/components/layout/LayoutManager';
|
||||
|
||||
|
@ -1,4 +1,3 @@
|
||||
import '../../../../libraries/mootools-core-1.4.5';
|
||||
import TestSuite from './TestSuite';
|
||||
import LayoutManager from '../../src/components/layout/LayoutManager';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user