Skip to content

Commit

Permalink
regenerate code after rebasing
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielMSchmidt committed Jan 9, 2018
1 parent 7431d9f commit 708c85a
Showing 1 changed file with 60 additions and 0 deletions.
60 changes: 60 additions & 0 deletions detox/src/android/espressoapi/DetoxMatcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,66 @@


class DetoxMatcher {
static matcherForText(text) {
if (typeof text !== "string") throw new Error("text should be a string, but got " + (text + (" (" + (typeof text + ")"))));
return {
target: {
type: "Class",
value: "com.wix.detox.espresso.DetoxMatcher"
},
method: "matcherForText",
args: [{
type: "String",
value: text
}]
};
}

static matcherForContentDescription(contentDescription) {
if (typeof contentDescription !== "string") throw new Error("contentDescription should be a string, but got " + (contentDescription + (" (" + (typeof contentDescription + ")"))));
return {
target: {
type: "Class",
value: "com.wix.detox.espresso.DetoxMatcher"
},
method: "matcherForContentDescription",
args: [{
type: "String",
value: contentDescription
}]
};
}

static matcherForTestId(testId) {
if (typeof testId !== "string") throw new Error("testId should be a string, but got " + (testId + (" (" + (typeof testId + ")"))));
return {
target: {
type: "Class",
value: "com.wix.detox.espresso.DetoxMatcher"
},
method: "matcherForTestId",
args: [{
type: "String",
value: testId
}]
};
}

static matcherForClass(className) {
if (typeof className !== "string") throw new Error("className should be a string, but got " + (className + (" (" + (typeof className + ")"))));
return {
target: {
type: "Class",
value: "com.wix.detox.espresso.DetoxMatcher"
},
method: "matcherForClass",
args: [{
type: "String",
value: className
}]
};
}

static matcherForSufficientlyVisible() {
return {
target: {
Expand Down

0 comments on commit 708c85a

Please sign in to comment.