fix: layout unit test use g6

This commit is contained in:
zhanning.bzn 2019-11-20 22:15:44 +08:00
parent ff35dd866d
commit 64c4950189
3 changed files with 6 additions and 3 deletions

View File

@ -1,6 +1,7 @@
const expect = require('chai').expect;
// 注意这里不能直接require原始的src文件而要使用build后的文件因为web worker代码是通过worker-loader内联进来的。
const G6 = require('../../../build/g6');
// const G6 = require('../../../build/g6');
const G6 = require('../../../src');
const data = require('./data.json');
const div = document.createElement('div');

View File

@ -1,6 +1,7 @@
const expect = require('chai').expect;
// 注意这里不能直接require原始的src文件而要使用build后的文件因为web worker代码是通过worker-loader内联进来的。
const G6 = require('../../../build/g6');
// const G6 = require('../../../build/g6');
const G6 = require('../../../src');
const data = require('./data.json');
const div = document.createElement('div');

View File

@ -1,6 +1,7 @@
const expect = require('chai').expect;
// 注意这里不能直接require原始的src文件而要使用build后的文件因为web worker代码是通过worker-loader内联进来的。
const G6 = require('../../../build/g6');
// const G6 = require('../../../build/g6');
const G6 = require('../../../src');
const data = require('./data.json');
const div = document.createElement('div');