Skip to content

Commit a90344f

Browse files
AndreasBackxfacebook-github-bot
authored andcommitted
expose expect function as well
Summary: Currently you can use almost all functions via the exported `expects` struct. Though `expect` is not available. This would be nice to have as it makes writing expectations for custom checks a bit nicer when you're already using expects. We can name is `expects.true` as well, or anything else that you'd recommend. For now I've named it `expects.expect`. Reviewed By: IanChilds Differential Revision: D68328897 fbshipit-source-id: ca01f1edd3107d03c77bc60619dcd181b79e70ec
1 parent 7c2931f commit a90344f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

prelude/utils/expect.bzl

+1
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ def expect_struct(name: str, val: struct):
126126

127127
# You'll likely want to import this struct for convenience, instead of each method separately
128128
expects = struct(
129+
expect = expect,
129130
type = expect_type,
130131
string = expect_string,
131132
string_starts_with = expect_string_starts_with,

0 commit comments

Comments
 (0)