Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
ulakbus-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
ulakbus
ulakbus-ui
Commits
f787594e
Commit
f787594e
authored
Jun 16, 2015
by
Evren Kutar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add group and generate test cases
parent
6b2ed3fc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
form_service_test.js
app/forms/form_service_test.js
+11
-4
No files found.
app/forms/form_service_test.js
View file @
f787594e
...
...
@@ -17,15 +17,22 @@ describe('form service module', function () {
function
(
Generator
)
{
expect
(
Generator
.
generate
).
not
.
toBe
(
null
);
var
form_json
=
[
{
email
:
'test@test.com'
,
id
:
2
,
name
:
'travolta'
},
{
email
:
'test@test.com'
,
id
:
2
,
name
:
'travolta'
}
];
var
form_json
=
{
email
:
'test@test.com'
,
id
:
2
,
name
:
'travolta'
};
var
form_generated
=
Generator
.
generate
(
form_json
);
expect
(
form_generated
).
toEqual
();
}])
);
it
(
'should group form'
,
inject
([
'Generator'
,
function
(
Generator
){
expect
(
Generator
.
group
).
not
.
toBe
(
null
);
var
group_json
=
{
group_objects
:
{
1
:[
'email'
,
'name'
],
2
:[
'password'
]}}
var
grouped_form
=
Generator
.
group
(
group_json
);
expect
(
grouped_form
).
toEqual
();
}])
);
});
});
\ No newline at end of file
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