Skip to content

Instantly share code, notes, and snippets.

@mcdee
Created September 8, 2017 16:27
Show Gist options
  • Save mcdee/8e4d34f1e997d3ad1860312c901ecfc9 to your computer and use it in GitHub Desktop.
Save mcdee/8e4d34f1e997d3ad1860312c901ecfc9 to your computer and use it in GitHub Desktop.
'use strict';
const Reservation = artifacts.require('./Reservation.sol');
contract('Reservation', accounts => {
var instance;
it('works', async function() {
instance = await Reservation.new(1564555780, 1, 2, 1600000000, 200000000);
var fee = await instance.amountPerGuest();
assert.equal(fee.toString(), web3.toWei(800, 'mwei'));
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment