Files
openzeppelin-contracts/test/ownership/Contactable.test.js
Nicolás Venturo 567b773242 Prefer const in test files (#1117)
* Removed all instances of var.

* Sorted eslintrc rules.

* Made eslint rule severity explicit.

* Now prefering const over let.
2018-07-26 13:25:10 -03:00

28 lines
775 B
JavaScript

const Contactable = artifacts.require('Contactable');
contract('Contactable', function (accounts) {
let contactable;
beforeEach(async function () {
contactable = await Contactable.new();
});
it('should have an empty contact info', async function () {
const info = await contactable.contactInformation();
assert.isTrue(info === '');
});
describe('after setting the contact information', function () {
const contactInfo = 'contact information';
beforeEach(async function () {
await contactable.setContactInformation(contactInfo);
});
it('should return the setted contact information', async function () {
const info = await contactable.contactInformation();
assert.isTrue(info === contactInfo);
});
});
});