mirror of
https://github.com/embarklabs/embark.git
synced 2025-01-09 21:35:58 +00:00
17 lines
687 B
JavaScript
17 lines
687 B
JavaScript
/*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 (done) {
|
|
const contract = fs.readFileSync('./test/contracts/simple_storage.sol').toString();
|
|
const file = new File({filename: '.embark/contracts/embark-framework/embark/master/test_app/app/contracts/simple_storage.sol',
|
|
path: 'https://raw.githubusercontent.com/embark-framework/embark/develop/test_apps/test_app/app/contracts/simple_storage.sol'});
|
|
file.parseFileForImport(contract, () => {
|
|
done();
|
|
});
|
|
});
|
|
});
|
|
});
|