mirror of
				https://github.com/gohugoio/hugo.git
				synced 2024-05-11 05:54:58 +00:00 
			
		
		
		
	commands: t.Error => t.Errorf
This commit is contained in:
		@@ -52,7 +52,7 @@ func TestUndraftContent(t *testing.T) {
 | 
			
		||||
		res, err := undraftContent(p)
 | 
			
		||||
		if test.expectedErr != "" {
 | 
			
		||||
			if err == nil {
 | 
			
		||||
				t.Error("[%d] Expected error, got none", i)
 | 
			
		||||
				t.Errorf("[%d] Expected error, got none", i)
 | 
			
		||||
				continue
 | 
			
		||||
			}
 | 
			
		||||
			if err.Error() != test.expectedErr {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user