Skip to content

Commit

Permalink
truffle tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike committed Aug 21, 2017
1 parent 7858665 commit 7646645
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions test/Remittance.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
var Remittance = artifacts.require("./Remittance.sol");

contract('Remittance', function(accounts) {

var contract;
var fee = 300000 * 4000000 ;


beforeEach(function() {
return Remittance.new({from:owner})
.then(function(instance) {
contract = instance;

});
});

it("should say Hello", function() {
assert.strictEqual(true,true,"Something is wrong.");
});

it("should be owned by owner", function() {
return contract.owner({from:owner})
.then(function(_owner) {
assert.strictEqual(owner,_owner,"Contract is not owned by Owner.");

});

});


});

0 comments on commit 7646645

Please sign in to comment.