Skip to content

fix displaying undefined args in output - #798

Merged
DavertMik merged 1 commit into
masterfrom
undefined-arg-fix
Dec 2, 2017
Merged

fix displaying undefined args in output#798
DavertMik merged 1 commit into
masterfrom
undefined-arg-fix

Conversation

@APshenkin

Copy link
Copy Markdown
Contributor

undefined args in test break it.

example:

Scenario.only('test', (I) => {
let b;
I.assertEqual(b, 'undefined');
});

expected:

@Test --
 test
 • I assert equal undefined, "undefined"
 ✖ FAILED in 7ms


-- FAILURES:

  1) @Test: test:
     undefined == 'undefined'
  
  Scenario Steps:
  
  - I.assertEqual(undefined, "undefined") at Test.Scenario (tests/test.js:12:5)

actual:

@Test --
 test
 ✖ FAILED in 1ms


-- FAILURES:

  1) @Test: test:
     Cannot read property 'toString' of undefined

This PR will fix the issue

@APshenkin
APshenkin requested a review from DavertMik December 1, 2017 09:02
@DavertMik

Copy link
Copy Markdown
Contributor

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants