mirror of
https://github.com/embarklabs/embark.git
synced 2025-01-11 06:16:01 +00:00
0ba16278bd
The latest lerna changes have changed the HTTP paths of some test files used in the repo. This PR updates the paths to their new location.
36 lines
1.2 KiB
JavaScript
36 lines
1.2 KiB
JavaScript
/*globals describe, it*/
|
|
const fs = require('fs-extra');
|
|
const assert = require('assert');
|
|
|
|
describe('http contracts', () => {
|
|
it('should have downloaded the file in .embark/contracts', (done) => {
|
|
const contractPath = '.embark/contracts/status-im/contracts/151-embark31/contracts/token/StandardToken.sol';
|
|
fs.access(contractPath, (err) => {
|
|
if (err) {
|
|
assert.fail(contractPath + ' was not downloaded');
|
|
}
|
|
done();
|
|
});
|
|
});
|
|
|
|
it('should have downloaded the file import file too', (done) => {
|
|
const contractImportPath = '.embark/contracts/status-im/contracts/151-embark31/contracts/token/ERC20Token.sol';
|
|
fs.access(contractImportPath, (err) => {
|
|
if (err) {
|
|
assert.fail(contractImportPath + ' was not downloaded');
|
|
}
|
|
done();
|
|
});
|
|
});
|
|
|
|
it('should have downloaded the http import in SimpleStorageWithHttpImport', (done) => {
|
|
const contractImportPath = '.embark/contracts/embark-framework/embark/master/test_dapps/packages/contracts_app/contracts/ownable.sol';
|
|
fs.access(contractImportPath, (err) => {
|
|
if (err) {
|
|
assert.fail(contractImportPath + ' was not downloaded');
|
|
}
|
|
done();
|
|
});
|
|
});
|
|
});
|