When we deploy contract, the network name can be get by argument:
module.exports = async (deployer, network, accounts) => {
if (network === 'development') {
// ...
}
};
Then, when we run test cases, how to get network name?
contract('Box', () => {
// ...
}