From 7281fd53bc5bfd5507c58c58d343454b22cb3177 Mon Sep 17 00:00:00 2001 From: aniket-engg Date: Thu, 23 Jan 2020 11:10:42 +0530 Subject: [PATCH] fixes #951 --- remix-tests/src/compiler.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/remix-tests/src/compiler.ts b/remix-tests/src/compiler.ts index 55fdc80a94..7ec33d4a6f 100644 --- a/remix-tests/src/compiler.ts +++ b/remix-tests/src/compiler.ts @@ -153,6 +153,7 @@ export function compileContractSources(sources: SrcIfc, versionUrl: any, usingWo const accounts: string[] = opts.accounts || [] // Iterate over sources keys. Inject test libraries. Inject test library import statements. if (!('remix_tests.sol' in sources) && !('tests.sol' in sources)) { + sources['tests.sol'] = { content: require('../sol/tests.sol.js') } sources['remix_tests.sol'] = { content: require('../sol/tests.sol.js') } sources['remix_accounts.sol'] = { content: writeTestAccountsContract(accounts) } }