✅ Fill out append test better
This commit is contained in:
		
					parent
					
						
							
								cc9e8f6167
							
						
					
				
			
			
				commit
				
					
						c01fb53a0e
					
				
			
		
					 1 changed files with 6 additions and 1 deletions
				
			
		|  | @ -49,7 +49,12 @@ func (s *AppendTestSuite) TestSuccess() { | |||
| 	err := Append(l) | ||||
| 	s.Require().NoError(err) | ||||
| 	s.Require().FileExists(s.dir + "/test.log") | ||||
| 	// @todo test file contents | ||||
| 	by, err := os.ReadFile(s.dir + "/test.log") | ||||
| 	st := string(by) | ||||
| 	s.Require().NoError(err) | ||||
| 	s.Assert().Contains(st, "Jimmy\n") | ||||
| 	s.Assert().Contains(st, "\n@foo 42") | ||||
| 	s.Assert().Contains(st, "\n@bar true") | ||||
| } | ||||
| 
 | ||||
| func (s *AppendTestSuite) TestConfLoadErr() { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue