Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
onesignal-node
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
CI / CD
CI / CD
Pipelines
Schedules
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Cedar Studios
onesignal-node
Commits
23d207e7
Commit
23d207e7
authored
Jul 29, 2018
by
zeynel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove deprecated test
parent
cd346189
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
12 deletions
+0
-12
notification.test.js
test/notification.test.js
+0
-12
No files found.
test/notification.test.js
View file @
23d207e7
...
@@ -18,18 +18,6 @@ describe('Notification Tests', function () {
...
@@ -18,18 +18,6 @@ describe('Notification Tests', function () {
}
}
})
})
it
(
'Expect to throw an error with object without one of required fields on notification'
,
function
()
{
var
notification
=
NotificationMock
.
invalidNotification
;
try
{
var
response
=
new
OneSignal
.
Notification
(
notification
);
expect
(
response
).
to
.
equal
(
undefined
);
}
catch
(
err
)
{
expect
(
err
).
to
.
be
.
an
(
'string'
);
expect
(
err
).
to
.
equal
(
'Body must include one of the following fields: contents, content_available, template_id'
);
}
})
it
(
'Expect to valid notification with contents'
,
function
()
{
it
(
'Expect to valid notification with contents'
,
function
()
{
var
notification
=
NotificationMock
.
validWithContents
;
var
notification
=
NotificationMock
.
validWithContents
;
var
response
=
new
OneSignal
.
Notification
(
notification
);
var
response
=
new
OneSignal
.
Notification
(
notification
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment