Ivan - Fix master type [skip ci]
This commit is contained in:
parent
e9854341f0
commit
91e539a053
|
@ -21,6 +21,6 @@ describe '/ticket/change-department' do
|
|||
(ticket['department_id']).should.equal('2')
|
||||
|
||||
lastLog = $database.getLastRow('log')
|
||||
(lastLog['type']).should.equal('CHANGE_DEPARTMENT')
|
||||
(lastLog['type']).should.equal('DEPARTMENT_CHANGED')
|
||||
end
|
||||
end
|
||||
|
|
|
@ -21,7 +21,7 @@ describe '/ticket/change-priority' do
|
|||
(ticket['unread']).should.equal('1')
|
||||
|
||||
lastLog = $database.getLastRow('log')
|
||||
(lastLog['type']).should.equal('CHANGE_PRIORITY')
|
||||
(lastLog['type']).should.equal('PRIORITY_CHANGED')
|
||||
end
|
||||
|
||||
it 'should change priority to medium if everything is okey' do
|
||||
|
@ -41,7 +41,7 @@ describe '/ticket/change-priority' do
|
|||
(ticket['unread']).should.equal('1')
|
||||
|
||||
lastLog = $database.getLastRow('log')
|
||||
(lastLog['type']).should.equal('CHANGE_PRIORITY')
|
||||
(lastLog['type']).should.equal('PRIORITY_CHANGED')
|
||||
end
|
||||
|
||||
it 'should change priority to low if everything is okey' do
|
||||
|
@ -61,7 +61,7 @@ describe '/ticket/change-priority' do
|
|||
(ticket['unread']).should.equal('1')
|
||||
|
||||
lastLog = $database.getLastRow('log')
|
||||
(lastLog['type']).should.equal('CHANGE_PRIORITY')
|
||||
(lastLog['type']).should.equal('PRIORITY_CHANGED')
|
||||
end
|
||||
|
||||
end
|
||||
|
|
|
@ -20,6 +20,6 @@ describe '/ticket/close' do
|
|||
(ticket['unread']).should.equal('1')
|
||||
|
||||
lastLog = $database.getLastRow('log')
|
||||
(lastLog['type']).should.equal('CLOSE_TICKET')
|
||||
(lastLog['type']).should.equal('CLOSE')
|
||||
end
|
||||
end
|
||||
|
|
|
@ -75,7 +75,7 @@ describe '/ticket/comment/' do
|
|||
(ticket['unread_staff']).should.equal('1')
|
||||
|
||||
lastLog = $database.getLastRow('log')
|
||||
(lastLog['type']).should.equal('COMMENT_TICKET')
|
||||
(lastLog['type']).should.equal('COMMENT')
|
||||
end
|
||||
|
||||
it 'should fail if user is not the author nor owner' do
|
||||
|
|
|
@ -20,6 +20,6 @@ describe '/ticket/re-open' do
|
|||
(ticket['unread']).should.equal('1')
|
||||
|
||||
lastLog = $database.getLastRow('log')
|
||||
(lastLog['type']).should.equal('RE_OPEN_TICKET')
|
||||
(lastLog['type']).should.equal('RE_OPEN')
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue