Skip to content

Commit f76a2c2

Browse files
committed
Refactors existing integration test
1 parent 69862fe commit f76a2c2

File tree

1 file changed

+7
-12
lines changed

1 file changed

+7
-12
lines changed

test/integration/zendeskWidgetSpec.js

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,11 @@
1-
'use strict';
1+
describe('zendeskWidget', function() {
2+
'use strict';
23

3-
describe('Angular Zendesk Widget', function() {
4-
5-
describe('Module bootstrap', function() {
6-
7-
it('should throw if no accountUrl provided', function() {
8-
module('zendeskWidget');
9-
expect(function() {
10-
inject()
11-
}).toThrowError('Missing accountUrl. Please set in app config via ZendeskWidgetProvider');
12-
});
4+
beforeEach(module('zendeskWidget'));
135

6+
it('throws an error when `accountUrl` is blank', function() {
7+
expect(function() { inject() }).toThrowError(
8+
'Missing accountUrl. Please set in app config via ZendeskWidgetProvider'
9+
);
1410
});
15-
1611
});

0 commit comments

Comments
 (0)