mirror of
https://github.com/ivuorinen/tree-sitter-shellspec.git
synced 2026-01-27 06:44:08 +00:00
- Fix 'yot' → 'yet' typos in test/spec/03.example_spec.sh - Fix 'Sometime' → 'Sometimes' and cpunum.sh references in test/spec/22.sourcced_spec.sh - Fix Before → After in after hook section of test/spec/07.before_after_hook_spec.sh - Improve wording and capitalization throughout hook spec file All 61 tests still passing after corrections. Addresses PR #1 review comments from Copilot and CodeRabbit.
38 lines
751 B
Bash
38 lines
751 B
Bash
# shellcheck shell=sh
|
|
|
|
Describe 'example example'
|
|
It 'is "example"'
|
|
When call echo 'foo'
|
|
The output should eq 'foo'
|
|
End
|
|
|
|
Example 'is "example"'
|
|
When call echo 'bar'
|
|
The output should eq 'bar'
|
|
End
|
|
|
|
Specify 'is also "example"'
|
|
When call echo 'baz'
|
|
The output should eq 'baz'
|
|
End
|
|
|
|
Example 'this is "Not yet implemented" example block'
|
|
:
|
|
End
|
|
|
|
Todo 'what to do' # same as "Not yet implemented" example but not block
|
|
|
|
It 'not allows define "example group" in "example"'
|
|
# Describe 'example group'
|
|
# this is syntax error
|
|
# End
|
|
The value 1 should eq 1
|
|
End
|
|
End
|
|
|
|
# example group is not required
|
|
It 'is "example" without "example group"'
|
|
When call echo 'foo'
|
|
The output should eq 'foo'
|
|
End
|