mirror of
https://github.com/ivuorinen/tree-sitter-shellspec.git
synced 2026-02-15 23:52:40 +00:00
test: fix typos and incorrect hook usage in spec files
- 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.
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
# shellcheck shell=sh
|
||||
|
||||
# Sometime, functions are defined in a single shell script.
|
||||
# Sometimes, functions are defined in a single shell script.
|
||||
# You will want to test it. but you do not want to run the script.
|
||||
# You want to test only the function, right?
|
||||
Describe 'sourced return example'
|
||||
Include ./count_lines.sh
|
||||
|
||||
Example 'test cpunum.sh with stubbed cat /cpu/info'
|
||||
Example 'test count_lines with stubbed data'
|
||||
Data
|
||||
#|1
|
||||
#|2
|
||||
@@ -19,7 +19,7 @@ Describe 'sourced return example'
|
||||
The stdout should eq 5
|
||||
End
|
||||
|
||||
Example 'test cpunum.sh with stubbed cat /cpu/info'
|
||||
Example 'test count_lines with stubbed data'
|
||||
Data data
|
||||
data() {
|
||||
%putsn "line1"
|
||||
|
||||
Reference in New Issue
Block a user