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
a95a50f5
Commit
a95a50f5
authored
May 21, 2018
by
zeynel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove old tests
parent
ea24fa01
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
15 deletions
+0
-15
notification.test.js
test/notification.test.js
+0
-15
No files found.
test/notification.test.js
View file @
a95a50f5
...
...
@@ -61,21 +61,6 @@ describe('Notification Tests', function () {
})
describe
(
'Setting OneSignal Properties'
,
function
()
{
it
(
'Expect to throw an error when setting invalid parameter'
,
function
()
{
var
notification
=
NotificationMock
.
validWithContents
;
var
notificationObject
=
new
OneSignal
.
Notification
(
notification
);
try
{
var
parameter
=
NotificationMock
.
invalidParameter
;
notificationObject
.
setParameter
(
parameter
.
name
,
parameter
.
value
);
expect
(
response
).
to
.
equal
(
undefined
);
}
catch
(
err
)
{
expect
(
err
).
to
.
be
.
an
(
'string'
);
expect
(
err
).
to
.
equal
(
'"other" is not present in documentation. You should add a exclamation'
.
concat
(
' mark to the begging of the name, if you want to set it : !other'
));
}
})
it
(
'Expect to valid data when setting parameter'
,
function
()
{
var
notification
=
NotificationMock
.
validWithContents
;
var
notificationObject
=
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