-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed #61 for js array and match, also some doc improvements
- Loading branch information
Showing
6 changed files
with
63 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
karate-junit4/src/test/java/com/intuit/karate/junit4/demos/JsArraysRunner.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package com.intuit.karate.junit4.demos; | ||
|
||
import com.intuit.karate.junit4.Karate; | ||
import cucumber.api.CucumberOptions; | ||
import org.junit.runner.RunWith; | ||
|
||
@RunWith(Karate.class) | ||
@CucumberOptions(features = "classpath:com/intuit/karate/junit4/demos/js-arrays.feature") | ||
public class JsArraysRunner { | ||
|
||
} |
8 changes: 8 additions & 0 deletions
8
karate-junit4/src/test/java/com/intuit/karate/junit4/demos/js-arrays.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Feature: test that arrays returned from js can be used in match | ||
|
||
Scenario: | ||
* def fun = function(){ return ['foo', 'bar', 'baz'] } | ||
* def json = ['foo', 'bar', 'baz'] | ||
* match json == fun() | ||
* def expected = fun() | ||
* match json == expected |