Skip to content

Commit

Permalink
Merge pull request #16 from cgewecke/fix/coverage
Browse files Browse the repository at this point in the history
Fix coverage
  • Loading branch information
nachomazzara authored Jan 15, 2020
2 parents 002ac64 + eec8d94 commit 744dcf0
Show file tree
Hide file tree
Showing 9 changed files with 31 additions and 26 deletions.
11 changes: 11 additions & 0 deletions .solcover.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module.exports = {
skipFiles: ['mocks', 'utils/Migrations.sol'],
providerOptions: {
default_balance_ether: 1000000000,
total_accounts: 20
},
mocha: {
grep: "@skip-on-coverage",
invert: true
}
}
6 changes: 0 additions & 6 deletions buidler.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,5 @@ module.exports = {
enabled: true,
runs: 200
}
},
networks: {
soliditycoverage: {
gas: 9000000,
url: 'http://localhost:8555'
}
}
}
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
pragma solidity ^0.5.15;

import "../../contracts/interfaces/IENSRegistry.sol";
import "../interfaces/IENSRegistry.sol";

contract FakeENSRegistryFactory {
address public ensRegistryAddress;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
pragma solidity ^0.5.15;

import "../../contracts/ens/DCLController.sol";
import "../ens/DCLController.sol";


contract FakeDCLController is DCLController {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
pragma solidity ^0.5.15;

import "../../contracts/ens/DCLRegistrar.sol";
import "../ens/DCLRegistrar.sol";


contract FakeDCLRegistrar is DCLRegistrar {
Expand Down
26 changes: 13 additions & 13 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions test/Subdomain.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ describe('DCL Names V2', function() {

creationParams = {
...fromDeployer,
gas: 6e6,
//gas: 6e6,
gasPrice: 21e9
}

Expand Down Expand Up @@ -2217,7 +2217,7 @@ describe('DCL Names V2', function() {
expect(subdomainOwner).to.be.equal(anotherUser)
})

it('reverts when trying to change the resolver by an unauthorized account', async function() {
it('reverts when trying to change the resolver by an unauthorized account [ @skip-on-coverage ]', async function() {
await dclControllerContract.register(subdomain1, user, fromUser)

await assertRevert(
Expand Down Expand Up @@ -2312,15 +2312,15 @@ describe('DCL Names V2', function() {
)
})

it('reverts when trying to set the owner for subdomain by an unauthorized account', async function() {
it('reverts when trying to set the owner for subdomain by an unauthorized account [ @skip-on-coverage ]', async function() {
await dclControllerContract.register(subdomain1, user, fromUser)

await assertRevert(
ensRegistryContract.setOwner(subdomain1Hash, anotherUser, fromHacker)
)
})

it('reverts when trying to set a subnode owner for a domain by an unauthorized account', async function() {
it('reverts when trying to set a subnode owner for a domain by an unauthorized account [ @skip-on-coverage ]', async function() {
await assertRevert(
ensRegistryContract.setSubnodeOwner(
dclDomainHash,
Expand Down

0 comments on commit 744dcf0

Please sign in to comment.