embark-area-51/test/file.js

14 lines
443 B
JavaScript
Raw Normal View History

2018-04-18 20:32:51 +00:00
/*globals describe, it*/
const File = require('../lib/core/file');
const fs = require('fs-extra');
describe('embark.File', function () {
describe('parseFileForImport', () => {
it('should find all the imports', function () {
const contract = fs.readFileSync('./test/contracts/simple_storage.sol').toString();
const file = new File({filename: 'simple_storage.sol'});
file.parseFileForImport(contract);
});
});
});