Skip to content
This repository has been archived by the owner on Apr 18, 2021. It is now read-only.

Commit

Permalink
fix: example test case convention, fix package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
JhChoy committed Feb 18, 2019
1 parent ce9033a commit 1024a20
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
5 changes: 3 additions & 2 deletions packages/vvisp/referenceFiles/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"author": "",
"license": "ISC",
"devDependencies": {
"@haechi-labs/vvisp-utils": "^0.1.7",
"@haechi-labs/vvisp-utils": "^0.1.10",
"@haechi-labs/vvisp-contracts": "^0.1.1",
"coveralls": "^3.0.1",
"dotenv": "^5.0.1",
"eth-gas-reporter": "^0.1.7",
Expand All @@ -24,7 +25,7 @@
"lint-staged": "^8.1.0",
"openzeppelin-solidity": "2.0.0",
"prettier": "^1.15.3",
"solidity-coverage": "https://github.com:rotcivegaf/solidity-coverage.git#5875f5b7bc74d447f3312c9c0e9fc7814b482477",
"solidity-coverage": "git+https://github.com/rotcivegaf/solidity-coverage.git#5875f5b7bc74d447f3312c9c0e9fc7814b482477",
"solium": "^1.1.6",
"truffle": "^5.0.0",
"truffle-hdwallet-provider": "0.0.5",
Expand Down
17 changes: 11 additions & 6 deletions packages/vvisp/referenceFiles/test/Example.test.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
const { BN } = require('openzeppelin-test-helpers');
const { BN, shouldFail, constants } = require('openzeppelin-test-helpers');

const Contract = artifacts.require('Contract');
const ContractFactory = artifacts.require('Contract');

contract('Contract', accounts => {
const [owner] = accounts;

beforeEach(async function() {
this.contract = await Contract.new({ from: owner });
let Contract;

beforeEach(async () => {
Contract = await ContractFactory.new({ from: owner });
});
it('should be a example test', async function() {
await this.contract.exampleFunction();

describe('#exampleFunction()', () => {
it('should be a example test', async () => {
await Contract.exampleFunction();
});
});
});

0 comments on commit 1024a20

Please sign in to comment.