Skip to content

Commit

Permalink
ucfopen#48 Prettier. Again.
Browse files Browse the repository at this point in the history
  • Loading branch information
FrenjaminBanklin committed Feb 27, 2019
1 parent 7c9cabd commit a89fc0a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/js/services/srv-widget.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,9 @@ describe('widgetSrv', () => {

expect(Materia.Coms.Json.send).toHaveBeenCalledWith('widget_instance_lock', [1])
expect(promiseSpy).not.toHaveBeenCalled()
expect(promiseCatch).toHaveBeenCalledWith('This widget is currently locked, you will be able to edit this widget when it is no longer being edited by somebody else.')
expect(promiseCatch).toHaveBeenCalledWith(
'This widget is currently locked, you will be able to edit this widget when it is no longer being edited by somebody else.'
)
})

it('locks a widget', () => {
Expand All @@ -439,9 +441,7 @@ describe('widgetSrv', () => {
mockSendPromiseOnce(true)

let promiseSpy = jest.fn()
_service
.canBePublishedByCurrentUser(1)
.then(promiseSpy)
_service.canBePublishedByCurrentUser(1).then(promiseSpy)
$scope.$digest() // processes promise

expect(Materia.Coms.Json.send).toHaveBeenCalledWith('widget_publish_perms_verify', [1])
Expand Down

0 comments on commit a89fc0a

Please sign in to comment.