I am instantiating a contract to test like this:
var Test = artifacts.require("./Test.sol");
contract('Test0', function(accounts) {
it("First test", function() {
var thisTest
return Test.deployed().then(function(instance) {
thisTest = instance
// my tests
})
it("Second test", function() {
var thisTest
return Test.deployed().then(function(instance) {
thisTest = instance
// thisTest still refers to the one in the previous test
// How do I create a new one?
})
})
The problem I'm having is that I can't isolate the different instances as I assume they're pointing to only one instance of the contract.
Is there a way to create more than one instance?