提交 d6e57653 编写于 作者: B Benjamin Pasero

add error handler to file service tests

上级 cca2ce7f
......@@ -32,7 +32,11 @@ suite('FileService', () => {
testDir = path.join(parentDir, id);
let sourceDir = require.toUrl('./fixtures/service');
extfs.copy(sourceDir, testDir, () => {
extfs.copy(sourceDir, testDir, (error) => {
if (error) {
return onError(error, done);
}
events = new utils.TestEventService();
service = new FileService(testDir, { disableWatcher: true }, events);
done();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册