Improved code layout.
This commit is contained in:
parent
d492142a8f
commit
389b1e7bb4
1 changed files with 6 additions and 6 deletions
|
@ -616,16 +616,16 @@ test( "diff", function() {
|
||||||
App.Auth.login({
|
App.Auth.login({
|
||||||
data: {
|
data: {
|
||||||
username: 'not_existing',
|
username: 'not_existing',
|
||||||
password: 'not_existing'
|
password: 'not_existing',
|
||||||
},
|
},
|
||||||
success: function(data) {
|
success: function(data) {
|
||||||
test( "auth - not existing user", function() {
|
test( "auth - not existing user", function() {
|
||||||
ok( false, 'ok')
|
ok( false, 'ok' )
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
error: function() {
|
error: function() {
|
||||||
test( "auth - not existing user", function() {
|
test( "auth - not existing user", function() {
|
||||||
ok( true, 'ok')
|
ok( true, 'ok' )
|
||||||
authWithSession();
|
authWithSession();
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
@ -635,18 +635,18 @@ var authWithSession = function() {
|
||||||
App.Auth.login({
|
App.Auth.login({
|
||||||
data: {
|
data: {
|
||||||
username: 'nicole.braun@zammad.org',
|
username: 'nicole.braun@zammad.org',
|
||||||
password: 'test'
|
password: 'test',
|
||||||
},
|
},
|
||||||
success: function(data) {
|
success: function(data) {
|
||||||
test( "auth - existing user", function() {
|
test( "auth - existing user", function() {
|
||||||
ok( true, 'authenticated')
|
ok( true, 'authenticated')
|
||||||
var user = App.Session.get('login');
|
var user = App.Session.get('login');
|
||||||
equal( 'nicole.braun@zammad.org', user, 'session login')
|
equal( 'nicole.braun@zammad.org', user, 'session login' )
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
error: function() {
|
error: function() {
|
||||||
test( "auth - existing user", function() {
|
test( "auth - existing user", function() {
|
||||||
ok( false, 'not authenticated')
|
ok( false, 'not authenticated' )
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue