Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
alvagi
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
alvagi
Commits
a08fa21f
Commit
a08fa21f
authored
Jan 10, 2015
by
sergey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix tests
parent
245e8673
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
12 deletions
+7
-12
package.json
package.json
+3
-2
index.js
test/index.js
+4
-10
No files found.
package.json
View file @
a08fa21f
...
...
@@ -18,8 +18,9 @@
"
readable-stream
"
:
"
*
"
},
"devDependencies"
:
{
"
mocha
"
:
"
*
"
,
"
expect.js
"
:
"
*
"
,
"
memstream
"
:
"
*
"
"
memorystream
"
:
"
^0.3.0
"
,
"
memstream
"
:
"
*
"
,
"
mocha
"
:
"
*
"
}
}
test/index.js
View file @
a08fa21f
var
MemoryStream
=
require
(
'
mem
stream
'
).
MemoryStream
;
var
MemoryStream
=
require
(
'
mem
orystream
'
)
;
var
agi
=
require
(
'
./../lib
'
)
var
expect
=
require
(
'
expect.js
'
);
var
Context
=
agi
.
Context
;
...
...
@@ -179,15 +179,9 @@ describe('Context', function() {
describe
(
'
record file
'
,
function
()
{
it
(
'
record
'
,
function
()
{
this
.
context
.
recordFile
(
'
test
'
,
'
wav
'
,
'
#
'
,
function
()
{});
expect
(
this
.
context
.
sent
.
join
(
''
)).
to
.
eql
(
'
STREAM FILE "test" # "
\n
'
);
});
it
(
'
defaults to all digits
'
,
function
()
{
this
.
context
.
streamFile
(
'
test
'
,
function
()
{});
expect
(
this
.
context
.
sent
.
join
(
''
)).
to
.
eql
(
'
STREAM FILE "test" "1234567890#*"
\n
'
);
});
this
.
context
.
recordFile
(
'
test
'
,
'
wav
'
,
'
#
'
,
10
,
function
()
{});
expect
(
this
.
context
.
sent
.
join
(
''
)).
to
.
eql
(
'
RECORD FILE "test" wav # 10000 0 1 2
\n
'
);
});
});
describe
(
'
waitForDigit
'
,
function
()
{
...
...
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