Skip to content

Commit 52e1977

Browse files
authored
Merge pull request #251131 from Homebrew/shortest
shortest 0.4.9 (new formula)
2 parents d25b110 + ca38046 commit 52e1977

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

Formula/s/shortest.rb

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
class Shortest < Formula
2+
desc "AI-powered natural language end-to-end testing framework"
3+
homepage "https://github.com/antiwork/shortest"
4+
url "https://registry.npmjs.org/@antiwork/shortest/-/shortest-0.4.9.tgz"
5+
sha256 "0e239bceeda97a65178b7e4b6be16cc88c67e047eeb71bfd2da04441156180f8"
6+
license "MIT"
7+
8+
bottle do
9+
sha256 cellar: :any_skip_relocation, arm64_tahoe: "cb3317b16f32964930b0dc0800926f935f8b4b8e43587b6c307218000ff8bdb0"
10+
sha256 cellar: :any_skip_relocation, arm64_sequoia: "cb3317b16f32964930b0dc0800926f935f8b4b8e43587b6c307218000ff8bdb0"
11+
sha256 cellar: :any_skip_relocation, arm64_sonoma: "cb3317b16f32964930b0dc0800926f935f8b4b8e43587b6c307218000ff8bdb0"
12+
sha256 cellar: :any_skip_relocation, sonoma: "6b1d99746d550614d0d529edf8a185e30f5af518e1c1013d1f89e50dce1a2ccf"
13+
sha256 cellar: :any_skip_relocation, x86_64_linux: "dab31d829a0e0de264d83636e041d73e5c8e01c9f7e6081921a26905509a75f0"
14+
end
15+
16+
depends_on "node"
17+
18+
def install
19+
system "npm", "install", *std_npm_args
20+
bin.install_symlink Dir["#{libexec}/bin/*"]
21+
end
22+
23+
test do
24+
ENV["GITHUB_TOTP_SECRET"] = "test"
25+
26+
assert_match version.to_s, shell_output("#{bin}/shortest --version")
27+
28+
output = shell_output("#{bin}/shortest github-code")
29+
assert_match "GitHub 2FA Code", output
30+
end
31+
end

0 commit comments

Comments
 (0)