Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
e9c972c1
Commit
e9c972c1
authored
Jul 14, 2020
by
aniket-engg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remix-ide build & serve successful
parent
162fde17
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
6 additions
and
6 deletions
+6
-6
tests.sol.ts
libs/remix-tests/sol/tests.sol.ts
+0
-0
tests_accounts.sol.ts
libs/remix-tests/sol/tests_accounts.sol.ts
+0
-0
compiler.ts
libs/remix-tests/src/compiler.ts
+3
-3
index.ts
libs/remix-tests/src/index.ts
+1
-1
tsconfig.lib.json
libs/remix-tests/tsconfig.lib.json
+1
-1
tsconfig.json
tsconfig.json
+1
-1
No files found.
libs/remix-tests/sol/tests.sol.
j
s
→
libs/remix-tests/sol/tests.sol.
t
s
View file @
e9c972c1
File moved
libs/remix-tests/sol/tests_accounts.sol.
j
s
→
libs/remix-tests/sol/tests_accounts.sol.
t
s
View file @
e9c972c1
File moved
libs/remix-tests/src/compiler.ts
View file @
e9c972c1
...
...
@@ -10,7 +10,7 @@ function regexIndexOf (inputString: string, regex: RegExp, startpos = 0) {
}
function
writeTestAccountsContract
(
accounts
:
string
[])
{
const
testAccountContract
=
require
(
'../sol/tests_accounts.sol
.js
'
)
const
testAccountContract
=
require
(
'../sol/tests_accounts.sol'
)
let
body
=
`address[
${
accounts
.
length
}
] memory accounts;`
if
(
!
accounts
.
length
)
body
+=
';'
else
{
...
...
@@ -86,8 +86,8 @@ export function compileFileOrFiles(filename: string, isDirectory: boolean, opts:
let
compiler
:
any
const
accounts
:
string
[]
=
opts
.
accounts
||
[]
const
sources
:
SrcIfc
=
{
'tests.sol'
:
{
content
:
require
(
'../sol/tests.sol
.js
'
)
},
'remix_tests.sol'
:
{
content
:
require
(
'../sol/tests.sol
.js
'
)
},
'tests.sol'
:
{
content
:
require
(
'../sol/tests.sol'
)
},
'remix_tests.sol'
:
{
content
:
require
(
'../sol/tests.sol'
)
},
'remix_accounts.sol'
:
{
content
:
writeTestAccountsContract
(
accounts
)
}
}
const
filepath
:
string
=
(
isDirectory
?
filename
:
path
.
dirname
(
filename
))
...
...
libs/remix-tests/src/index.ts
View file @
e9c972c1
...
...
@@ -2,4 +2,4 @@ export { runTestFiles } from './runTestFiles'
export
{
runTestSources
}
from
'./runTestSources'
export
{
runTest
}
from
'./testRunner'
export
*
from
'./types'
export
const
assertLibCode
=
require
(
'../sol/tests.sol
.js
'
)
export
const
assertLibCode
=
require
(
'../sol/tests.sol'
)
libs/remix-tests/tsconfig.lib.json
View file @
e9c972c1
...
...
@@ -4,7 +4,7 @@
"module"
:
"commonjs"
,
"outDir"
:
"../../dist/out-tsc"
,
"declaration"
:
true
,
"rootDir"
:
"./
src
"
,
"rootDir"
:
"./"
,
"types"
:
[
"node"
]
},
"exclude"
:
[
...
...
tsconfig.json
View file @
e9c972c1
...
...
@@ -22,7 +22,7 @@
"@remix-project/remix-lib"
:
[
"dist/libs/remix-lib/index.js"
],
"@remix-project/remix-simulator"
:
[
"dist/libs/remix-simulator/index.js"
],
"@remix-project/remix-solidity"
:
[
"dist/libs/remix-solidity/index.js"
],
"@remix-project/remix-tests"
:
[
"dist/libs/remix-tests/index.js"
],
"@remix-project/remix-tests"
:
[
"dist/libs/remix-tests/
src/
index.js"
],
"@remix-project/remix-url-resolver"
:
[
"dist/libs/remix-url-resolver/index.js"
]
}
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment