refactor: import order.
This commit is contained in:
		
							parent
							
								
									ebe3723319
								
							
						
					
					
						commit
						d801a47c96
					
				|  | @ -9,6 +9,7 @@ import ( | ||||||
| 
 | 
 | ||||||
| 	"github.com/appleboy/gorush/config" | 	"github.com/appleboy/gorush/config" | ||||||
| 	"github.com/appleboy/gorush/status" | 	"github.com/appleboy/gorush/status" | ||||||
|  | 
 | ||||||
| 	"github.com/buger/jsonparser" | 	"github.com/buger/jsonparser" | ||||||
| 	"github.com/sideshow/apns2" | 	"github.com/sideshow/apns2" | ||||||
| 	"github.com/stretchr/testify/assert" | 	"github.com/stretchr/testify/assert" | ||||||
|  | @ -365,18 +366,19 @@ func TestCheckSilentNotification(t *testing.T) { | ||||||
| 
 | 
 | ||||||
| // URL: https://goo.gl/5xFo3C
 | // URL: https://goo.gl/5xFo3C
 | ||||||
| // Example 2
 | // Example 2
 | ||||||
| // {
 | //
 | ||||||
| //     "aps" : {
 | //	{
 | ||||||
| //         "alert" : {
 | //	    "aps" : {
 | ||||||
| //             "title" : "Game Request",
 | //	        "alert" : {
 | ||||||
| //             "body" : "Bob wants to play poker",
 | //	            "title" : "Game Request",
 | ||||||
| //             "action-loc-key" : "PLAY"
 | //	            "body" : "Bob wants to play poker",
 | ||||||
| //         },
 | //	            "action-loc-key" : "PLAY"
 | ||||||
| //         "badge" : 5
 | //	        },
 | ||||||
| //     },
 | //	        "badge" : 5
 | ||||||
| //     "acme1" : "bar",
 | //	    },
 | ||||||
| //     "acme2" : [ "bang",  "whiz" ]
 | //	    "acme1" : "bar",
 | ||||||
| // }
 | //	    "acme2" : [ "bang",  "whiz" ]
 | ||||||
|  | //	}
 | ||||||
| func TestAlertStringExample2ForIos(t *testing.T) { | func TestAlertStringExample2ForIos(t *testing.T) { | ||||||
| 	var dat map[string]interface{} | 	var dat map[string]interface{} | ||||||
| 
 | 
 | ||||||
|  | @ -412,15 +414,16 @@ func TestAlertStringExample2ForIos(t *testing.T) { | ||||||
| 
 | 
 | ||||||
| // URL: https://goo.gl/5xFo3C
 | // URL: https://goo.gl/5xFo3C
 | ||||||
| // Example 3
 | // Example 3
 | ||||||
| // {
 | //
 | ||||||
| //     "aps" : {
 | //	{
 | ||||||
| //         "alert" : "You got your emails.",
 | //	    "aps" : {
 | ||||||
| //         "badge" : 9,
 | //	        "alert" : "You got your emails.",
 | ||||||
| //         "sound" : "bingbong.aiff"
 | //	        "badge" : 9,
 | ||||||
| //     },
 | //	        "sound" : "bingbong.aiff"
 | ||||||
| //     "acme1" : "bar",
 | //	    },
 | ||||||
| //     "acme2" : 42
 | //	    "acme1" : "bar",
 | ||||||
| // }
 | //	    "acme2" : 42
 | ||||||
|  | //	}
 | ||||||
| func TestAlertStringExample3ForIos(t *testing.T) { | func TestAlertStringExample3ForIos(t *testing.T) { | ||||||
| 	var dat map[string]interface{} | 	var dat map[string]interface{} | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -9,6 +9,7 @@ import ( | ||||||
| 	"github.com/appleboy/gorush/core" | 	"github.com/appleboy/gorush/core" | ||||||
| 	"github.com/appleboy/gorush/logx" | 	"github.com/appleboy/gorush/logx" | ||||||
| 	"github.com/appleboy/gorush/status" | 	"github.com/appleboy/gorush/status" | ||||||
|  | 
 | ||||||
| 	c "github.com/msalihkarakasli/go-hms-push/push/config" | 	c "github.com/msalihkarakasli/go-hms-push/push/config" | ||||||
| 	client "github.com/msalihkarakasli/go-hms-push/push/core" | 	client "github.com/msalihkarakasli/go-hms-push/push/core" | ||||||
| 	"github.com/msalihkarakasli/go-hms-push/push/model" | 	"github.com/msalihkarakasli/go-hms-push/push/model" | ||||||
|  |  | ||||||
|  | @ -4,6 +4,7 @@ import ( | ||||||
| 	"testing" | 	"testing" | ||||||
| 
 | 
 | ||||||
| 	"github.com/appleboy/gorush/config" | 	"github.com/appleboy/gorush/config" | ||||||
|  | 
 | ||||||
| 	"github.com/stretchr/testify/assert" | 	"github.com/stretchr/testify/assert" | ||||||
| ) | ) | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -4,6 +4,7 @@ import ( | ||||||
| 	"testing" | 	"testing" | ||||||
| 
 | 
 | ||||||
| 	"github.com/appleboy/gorush/config" | 	"github.com/appleboy/gorush/config" | ||||||
|  | 
 | ||||||
| 	"github.com/stretchr/testify/assert" | 	"github.com/stretchr/testify/assert" | ||||||
| ) | ) | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue