github.com/rafflecopter/deis@v1.12.2/client/cmd/apps_test.go (about)

     1  package cmd
     2  
     3  import "testing"
     4  
     5  func TestPrintLogLinesBadLine(t *testing.T) {
     6  	t.Parallel()
     7  
     8  	// Regression test for https://github.com/deis/deis/issues/4420
     9  	logs := `\nDone preparing production files\n\n\u001b[4mRunning \"concat:plugins\" (concat) task\u001b[24m\n`
    10  	if err := printLogs(logs); err != nil {
    11  		t.Fatal(err)
    12  	}
    13  
    14  	logs = `\n\n\n`
    15  	if err := printLogs(logs); err != nil {
    16  		t.Fatal(err)
    17  	}
    18  }