Commit d4bf03f6 authored by Chuck LeDuc Díaz's avatar Chuck LeDuc Díaz
Browse files

move build artifacts into build directory

parent a4449b36
......@@ -10,7 +10,7 @@ const fs = require('fs-extra')
* @returns {*} - Path where the compiled sources should be saved.
*/
function compilingPreperations () {
const buildPath = path.resolve(__dirname, '../src/contracts')
const buildPath = path.resolve(__dirname, '../build/contracts')
fs.removeSync(buildPath)
return buildPath
}
......
......@@ -24,13 +24,13 @@ describe('1.1. Identity', function () {
it('Should Build the Identity Contract', done => {
buildId()
let content = fs.readFileSync(path.resolve(__dirname, '../src/contracts', 'Identity.json'), 'utf8')
let content = fs.readFileSync(path.resolve(__dirname, '../build/contracts', 'Identity.json'), 'utf8')
expect(content).to.not.be.equal(null)
done()
})
it('Should Deploy the Identity Contract', (done) => {
IdentityContract = require('../src/contracts/Identity.json')
IdentityContract = require('../build/contracts/Identity.json')
parity.deployContract(wallet, IdentityContract, [wallet.address])
.then(async (testId) => {
identityAddr = testId.address
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment