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
24bfc280
Commit
24bfc280
authored
Mar 27, 2020
by
aniket-engg
Committed by
Aniket
Mar 27, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
error message improvement
parent
64d37b0f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
testRunner.ts
remix-tests/src/testRunner.ts
+1
-1
No files found.
remix-tests/src/testRunner.ts
View file @
24bfc280
...
@@ -167,7 +167,7 @@ export function runTest (testName: string, testObject: any, contractDetails: Com
...
@@ -167,7 +167,7 @@ export function runTest (testName: string, testObject: any, contractDetails: Com
let
sendParams
:
Record
<
string
,
string
>
|
null
=
null
let
sendParams
:
Record
<
string
,
string
>
|
null
=
null
if
(
sender
)
sendParams
=
{
from
:
sender
}
if
(
sender
)
sendParams
=
{
from
:
sender
}
if
(
func
.
inputs
&&
func
.
inputs
.
length
>
0
)
if
(
func
.
inputs
&&
func
.
inputs
.
length
>
0
)
return
resultsCallback
(
new
Error
(
'Method inside a test contract can not have parameters'
),
{
passingNum
,
failureNum
,
timePassed
})
return
resultsCallback
(
new
Error
(
`Method '
${
func
.
name
}
' can not have parameters inside a test contract`
),
{
passingNum
,
failureNum
,
timePassed
})
const
method
=
testObject
.
methods
[
func
.
name
].
apply
(
testObject
.
methods
[
func
.
name
],
[])
const
method
=
testObject
.
methods
[
func
.
name
].
apply
(
testObject
.
methods
[
func
.
name
],
[])
const
startTime
=
Date
.
now
()
const
startTime
=
Date
.
now
()
if
(
func
.
constant
)
{
if
(
func
.
constant
)
{
...
...
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