[ 
https://issues.apache.org/jira/browse/CB-12300?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15779938#comment-15779938
 ] 

ASF GitHub Bot commented on CB-12300:
-------------------------------------

Github user meirotstein commented on the issue:

    https://github.com/apache/cordova-plugin-contacts/pull/145
  
    Hi @alsorokin 
    
    I have wrapped the defineAutoTests method with my own 'describe' and 
executed jasmine-node via command line - 
    you can see how I use it here (depending a forked fixed version) :
    
https://github.com/meirotstein/cordova-plugin-contacts-mock/blob/master/spec/unitSpec.js
    
    Execution:
    ```
    jasmine-node spec
    ```
    
    These tests are also ran by 
[travis](https://travis-ci.org/meirotstein/cordova-plugin-contacts-mock/builds)
    
    Thanks!
     


> Allow run cordova-plugin-contacts with jasmine-node
> ---------------------------------------------------
>
>                 Key: CB-12300
>                 URL: https://issues.apache.org/jira/browse/CB-12300
>             Project: Apache Cordova
>          Issue Type: Improvement
>          Components: CordovaJS
>            Reporter: Meir Rotstein
>            Priority: Minor
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> In nodejs convention when calling async test done() function with parameter 
> it consider it as error object and the test fails.
> In the cordova-plugin-contacts project on the following tests the done 
> function is eventually called with a parameter:
> contacts.spec.25
> contacts.spec.28
> contacts.spec.29
> If you'll run these tests with jasmine-node you'll get the following error:
> Message: [object Object] Stacktrace: undefined
> jasmine-node: https://github.com/mhevery/jasmine-node



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to