embark/test_apps/test_app/test/http_contract_test.js
Pascal Precht af1bc90acc fix(ci): make CI happy again by updating http paths to master branch
Some test endpoints have still pointed to `develop` branch on GitHub,
which made our tests fail as we're now on `master` branch
2018-11-09 04:47:54 -05:00

37 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_apps/contracts_app/contracts/ownable.sol';
fs.access(contractImportPath, (err) => {
if (err) {
assert.fail(contractImportPath + ' was not downloaded');
}
done();
});
});
});