refactor: import order.

This commit is contained in:
Bo-Yi Wu 2022-12-03 22:44:29 +08:00
parent ebe3723319
commit d801a47c96
4 changed files with 27 additions and 21 deletions

View File

@ -9,6 +9,7 @@ import (
"github.com/appleboy/gorush/config"
"github.com/appleboy/gorush/status"
"github.com/buger/jsonparser"
"github.com/sideshow/apns2"
"github.com/stretchr/testify/assert"
@ -365,18 +366,19 @@ func TestCheckSilentNotification(t *testing.T) {
// URL: https://goo.gl/5xFo3C
// Example 2
// {
// "aps" : {
// "alert" : {
// "title" : "Game Request",
// "body" : "Bob wants to play poker",
// "action-loc-key" : "PLAY"
// },
// "badge" : 5
// },
// "acme1" : "bar",
// "acme2" : [ "bang", "whiz" ]
// }
//
// {
// "aps" : {
// "alert" : {
// "title" : "Game Request",
// "body" : "Bob wants to play poker",
// "action-loc-key" : "PLAY"
// },
// "badge" : 5
// },
// "acme1" : "bar",
// "acme2" : [ "bang", "whiz" ]
// }
func TestAlertStringExample2ForIos(t *testing.T) {
var dat map[string]interface{}
@ -412,15 +414,16 @@ func TestAlertStringExample2ForIos(t *testing.T) {
// URL: https://goo.gl/5xFo3C
// Example 3
// {
// "aps" : {
// "alert" : "You got your emails.",
// "badge" : 9,
// "sound" : "bingbong.aiff"
// },
// "acme1" : "bar",
// "acme2" : 42
// }
//
// {
// "aps" : {
// "alert" : "You got your emails.",
// "badge" : 9,
// "sound" : "bingbong.aiff"
// },
// "acme1" : "bar",
// "acme2" : 42
// }
func TestAlertStringExample3ForIos(t *testing.T) {
var dat map[string]interface{}

View File

@ -9,6 +9,7 @@ import (
"github.com/appleboy/gorush/core"
"github.com/appleboy/gorush/logx"
"github.com/appleboy/gorush/status"
c "github.com/msalihkarakasli/go-hms-push/push/config"
client "github.com/msalihkarakasli/go-hms-push/push/core"
"github.com/msalihkarakasli/go-hms-push/push/model"

View File

@ -4,6 +4,7 @@ import (
"testing"
"github.com/appleboy/gorush/config"
"github.com/stretchr/testify/assert"
)

View File

@ -4,6 +4,7 @@ import (
"testing"
"github.com/appleboy/gorush/config"
"github.com/stretchr/testify/assert"
)