mirror of https://github.com/dirtbags/moth.git
Test case for #144
This commit is contained in:
parent
d36c0da5bf
commit
dd8ca81186
|
@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
|
||||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
|
## [unreleased]
|
||||||
|
### Fixed
|
||||||
|
-
|
||||||
|
|
||||||
## [v4.2.2] - 2021-09-30
|
## [v4.2.2] - 2021-09-30
|
||||||
### Added
|
### Added
|
||||||
- `debug.notes` front matter field
|
- `debug.notes` front matter field
|
||||||
|
|
|
@ -57,7 +57,7 @@ func TestState(t *testing.T) {
|
||||||
|
|
||||||
teamName := "My Team"
|
teamName := "My Team"
|
||||||
if err := s.SetTeamName(teamID, teamName); err != nil {
|
if err := s.SetTeamName(teamID, teamName); err != nil {
|
||||||
t.Errorf("Setting team name: %w", err)
|
t.Errorf("Setting team name: %v", err)
|
||||||
}
|
}
|
||||||
if err := s.SetTeamName(teamID, "wat"); err == nil {
|
if err := s.SetTeamName(teamID, "wat"); err == nil {
|
||||||
t.Errorf("Registering team a second time didn't fail")
|
t.Errorf("Registering team a second time didn't fail")
|
||||||
|
|
|
@ -32,6 +32,11 @@ func TestTheme(t *testing.T) {
|
||||||
t.Error("Timestamp compared wrong")
|
t.Error("Timestamp compared wrong")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if f, _, err := s.Open("/foo/bar/index.html"); err == nil {
|
||||||
|
f.Close()
|
||||||
|
t.Error("Path is ignored")
|
||||||
|
}
|
||||||
|
|
||||||
if f, _, err := s.Open("nofile"); err == nil {
|
if f, _, err := s.Open("nofile"); err == nil {
|
||||||
f.Close()
|
f.Close()
|
||||||
t.Error("Opening non-existent file didn't return an error")
|
t.Error("Opening non-existent file didn't return an error")
|
||||||
|
|
Loading…
Reference in New Issue