feat: rename all test files to include .test.js postfix

This commit is contained in:
Matt Condon
2017-11-24 14:35:39 +02:00
parent 8662846838
commit 58abd66969
36 changed files with 0 additions and 0 deletions

30
test/Contactable.test.js Normal file
View File

@ -0,0 +1,30 @@
const assertRevert = require('./helpers/assertRevert');
var Contactable = artifacts.require('../contracts/ownership/Contactable.sol');
contract('Contactable', function (accounts) {
let contactable;
beforeEach(async function () {
contactable = await Contactable.new();
});
it('should have an empty contact info', async function () {
let info = await contactable.contactInformation();
assert.isTrue(info == '');
});
describe('after setting the contact information', function () {
let contactInfo = 'contact information';
beforeEach(async function () {
await contactable.setContactInformation(contactInfo);
});
it('should return the setted contact information', async function () {
let info = await contactable.contactInformation();
assert.isTrue(info === contactInfo);
});
});
});