Skip to content

Commit

Permalink
test: Fix single tests (#5173)
Browse files Browse the repository at this point in the history
  • Loading branch information
ffflorian committed Nov 16, 2018
1 parent 32b4c93 commit 6a0f2d6
Show file tree
Hide file tree
Showing 91 changed files with 91 additions and 92 deletions.
2 changes: 1 addition & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,6 @@ module.exports = grunt => {
grunt.config('karma.options.specReporter', {
showSpecTiming: true,
});
grunt.task.run(['scripts', 'newer:copy:dist_js', `test_prepare:${testName}`, 'karma:test']);
grunt.task.run(['scripts', 'build_dev_script', `test_prepare:${testName}`, 'karma:test']);
});
};
2 changes: 1 addition & 1 deletion test/unit_tests/audio/AudioRepositorySpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*
*/

// grunt test_init && grunt test_run:audio/AudioRepository
// grunt test_run:audio/AudioRepository

'use strict';

Expand Down
2 changes: 1 addition & 1 deletion test/unit_tests/auth/AuthRepositorySpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*
*/

// grunt test_init && grunt test_run:auth/AuthRepository
// grunt test_run:auth/AuthRepository

'use strict';

Expand Down
2 changes: 1 addition & 1 deletion test/unit_tests/backup/BackupRepositorySpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*
*/

// grunt test_init && grunt test_run:backup/BackupRepository
// grunt test_run:backup/BackupRepository

const noop = () => {};

Expand Down
2 changes: 1 addition & 1 deletion test/unit_tests/cache/CacheRepositorySpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*
*/

// grunt test_init && grunt test_run:cache/CacheRepository
// grunt test_run:cache/CacheRepository

'use strict';

Expand Down
2 changes: 1 addition & 1 deletion test/unit_tests/calling/CallMessageBuilderSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

'use strict';

// grunt test_init && grunt test_run:calling/CallMessageBuilder
// grunt test_run:calling/CallMessageBuilder

describe('z.calling.CallMessageBuilder', () => {
const callMessageBuilder = z.calling.CallMessageBuilder;
Expand Down
2 changes: 1 addition & 1 deletion test/unit_tests/calling/CallingRepositorySpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

'use strict';

// grunt test_init && grunt test_run:calling/CallingRepository
// grunt test_run:calling/CallingRepository

describe('z.calling.CallingRepository', () => {
const testFactory = new TestFactory();
Expand Down
2 changes: 1 addition & 1 deletion test/unit_tests/calling/SDPMapperSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

'use strict';

// grunt test_init && grunt test_run:calling/SDPMapper
// grunt test_run:calling/SDPMapper

describe('z.calling.SDPMapper', () => {
const envInitialState = Object.assign({}, z.util.Environment);
Expand Down
2 changes: 1 addition & 1 deletion test/unit_tests/calling/entities/CallMessageEntitySpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*
*/

// grunt test_init && grunt test_run:calling/entities/CallMessageEntity
// grunt test_run:calling/entities/CallMessageEntity

'use strict';

Expand Down
2 changes: 1 addition & 1 deletion test/unit_tests/calling/videoGridRepositorySpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

'use strict';

// grunt test_init && grunt test_run:calling/videoGridRepository
// grunt test_run:calling/videoGridRepository

describe('z.calling.VideoGridRepository', () => {
let groupVideoGrid;
Expand Down
2 changes: 1 addition & 1 deletion test/unit_tests/client/ClientEntitySpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*
*/

// grunt test_init && grunt test_run:client/Client
// grunt test_run:client/Client

'use strict';

Expand Down
2 changes: 1 addition & 1 deletion test/unit_tests/client/ClientMapperSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*
*/

// grunt test_init && grunt test_run:client/ClientMapper
// grunt test_run:client/ClientMapper

'use strict';

Expand Down
2 changes: 1 addition & 1 deletion test/unit_tests/client/ClientRepositorySpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*
*/

// grunt test_init && grunt test_run:client/ClientRepository
// grunt test_run:client/ClientRepository

'use strict';

Expand Down
2 changes: 1 addition & 1 deletion test/unit_tests/connect/ConnectGoogleServiceSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*
*/

// grunt test_init && grunt test_run:connect/ConnectGoogleService
// grunt test_run:connect/ConnectGoogleService

'use strict';

Expand Down
2 changes: 1 addition & 1 deletion test/unit_tests/connection/ConnectionMapperSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*
*/

// grunt test_init && grunt test_run:connection/ConnectionMapper
// grunt test_run:connection/ConnectionMapper

'use strict';

Expand Down
2 changes: 1 addition & 1 deletion test/unit_tests/connection/ConnectionRepositorySpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*
*/

// grunt test_init && grunt test_run:connection/ConnectionRepository
// grunt test_run:connection/ConnectionRepository

'use strict';

Expand Down
2 changes: 1 addition & 1 deletion test/unit_tests/connection/ConnectionServiceSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*
*/

// grunt test_init && grunt test_run:connection/ConnectionService
// grunt test_run:connection/ConnectionService

'use strict';

Expand Down
2 changes: 1 addition & 1 deletion test/unit_tests/conversation/ClientMismatchHandlerSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*
*/

// grunt test_init && grunt test_run:conversation/ClientMismatchHandler
// grunt test_run:conversation/ClientMismatchHandler

'use strict';

Expand Down
2 changes: 1 addition & 1 deletion test/unit_tests/conversation/ConversationCellStateSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*
*/

// grunt test_init && grunt test_run:conversation/ConversationCellState
// grunt test_run:conversation/ConversationCellState

'use strict';

Expand Down
2 changes: 1 addition & 1 deletion test/unit_tests/conversation/ConversationMapperSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*
*/

// grunt test_init && grunt test_run:conversation/ConversationMapper
// grunt test_run:conversation/ConversationMapper

'use strict';

Expand Down
2 changes: 1 addition & 1 deletion test/unit_tests/conversation/ConversationRepositorySpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*
*/

// grunt test_init && grunt test_run:conversation/ConversationRepository
// grunt test_run:conversation/ConversationRepository

'use strict';

Expand Down
2 changes: 1 addition & 1 deletion test/unit_tests/conversation/ConversationServiceSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*
*/

// grunt test_init && grunt test_run:conversation/ConversationService
// grunt test_run:conversation/ConversationService

'use strict';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*
*/

// grunt test_init && grunt test_run:conversation/ConversationVerificationStateHandler
// grunt test_run:conversation/ConversationVerificationStateHandler

'use strict';

Expand Down
2 changes: 1 addition & 1 deletion test/unit_tests/conversation/EventBuilderSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*
*/

// grunt test_init && grunt test_run:conversation/EventBuilder
// grunt test_run:conversation/EventBuilder

'use strict';

Expand Down
2 changes: 1 addition & 1 deletion test/unit_tests/conversation/EventMapperSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*
*/

// grunt test_init && grunt test_run:conversation/EventMapper
// grunt test_run:conversation/EventMapper

'use strict';

Expand Down
2 changes: 1 addition & 1 deletion test/unit_tests/cryptography/CryptographyMapperSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*
*/

// grunt test_init && grunt test_run:cryptography/CryptographyMapper
// grunt test_run:cryptography/CryptographyMapper

'use strict';

Expand Down
2 changes: 1 addition & 1 deletion test/unit_tests/cryptography/CryptographyRepositorySpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*
*/

// grunt test_init && grunt test_run:cryptography/CryptographyRepository
// grunt test_run:cryptography/CryptographyRepository

'use strict';

Expand Down
2 changes: 1 addition & 1 deletion test/unit_tests/entity/ConversationSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*
*/

// grunt test_init && grunt test_run:entity/Conversation
// grunt test_run:entity/Conversation

'use strict';

Expand Down
2 changes: 1 addition & 1 deletion test/unit_tests/entity/UserSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*
*/

// grunt test_init && grunt test_run:entity/User
// grunt test_run:entity/User

'use strict';

Expand Down
2 changes: 1 addition & 1 deletion test/unit_tests/entity/message/FileSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

'use strict';

// grunt test_init && grunt test_run:entity/message/File
// grunt test_run:entity/message/File

describe('z.entity.File', () => {
let file = null;
Expand Down
2 changes: 1 addition & 1 deletion test/unit_tests/entity/message/MemberMessageSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

'use strict';

// grunt test_init && grunt test_run:entity/message/MessageEntities
// grunt test_run:entity/message/MessageEntities

describe('Message Entities', () => {
describe('generateNameString', () => {
Expand Down
2 changes: 1 addition & 1 deletion test/unit_tests/entity/message/MessageEntitiesSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

'use strict';

// grunt test_init && grunt test_run:entity/message/MessageEntities
// grunt test_run:entity/message/MessageEntities

describe('Message Entities', () => {
let message_et = null;
Expand Down
2 changes: 1 addition & 1 deletion test/unit_tests/event/EventRepositorySpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*
*/

// grunt test_init && grunt test_run:event/EventRepository
// grunt test_run:event/EventRepository

'use strict';

Expand Down
2 changes: 1 addition & 1 deletion test/unit_tests/event/EventServiceCommon.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*
*/

// grunt test_init && grunt test_run:conversation/ConversationService
// grunt test_run:conversation/ConversationService

'use strict';

Expand Down
2 changes: 1 addition & 1 deletion test/unit_tests/event/EventServiceNoCompoundSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@
*
*/

// grunt test_init && grunt test_run:event/EventService
// grunt test_run:event/EventService

window.testEventServiceClass('event_service_no_compound', 'z.event.EventServiceNoCompound');
2 changes: 1 addition & 1 deletion test/unit_tests/event/EventServiceSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@
*
*/

// grunt test_init && grunt test_run:event/EventService
// grunt test_run:event/EventService

window.testEventServiceClass('event_service', 'z.event.EventService');
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*
*/

// grunt test_init && grunt test_run:event/preprocessor/QuotedMessageMiddleware
// grunt test_run:event/preprocessor/QuotedMessageMiddleware

describe('z.event.preprocessor.QuotedMessageMiddleware', () => {
const testFactory = new TestFactory();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*
*/

// grunt test_init && grunt test_run:event/preprocessor/ServiceMiddleware
// grunt test_run:event/preprocessor/ServiceMiddleware

describe('z.event.preprocessor.ServiceMiddleware', () => {
const testFactory = new TestFactory();
Expand Down
2 changes: 1 addition & 1 deletion test/unit_tests/extension/GiphyRepositorySpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*
*/

// grunt test_init && grunt test_run:extension/GiphyRepositorySpecs
// grunt test_run:extension/GiphyRepositorySpecs

'use strict';

Expand Down
2 changes: 1 addition & 1 deletion test/unit_tests/lifecycle/LifecycleServiceSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*
*/

// grunt test_init && grunt test_run:lifecycle/LifecycleService
// grunt test_run:lifecycle/LifecycleService

'use strict';

Expand Down
2 changes: 1 addition & 1 deletion test/unit_tests/links/LinkPreviewBlackListSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

'use strict';

// grunt test_init && grunt test_run:links/LinkPreviewBlackList
// grunt test_run:links/LinkPreviewBlackList

describe('is_blacklisted', () => {
it('should return true if link is youtu.be', () => {
Expand Down
2 changes: 1 addition & 1 deletion test/unit_tests/links/LinkPreviewHelpersSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

'use strict';

// grunt test_init && grunt test_run:links/LinkPreviewHelpers
// grunt test_run:links/LinkPreviewHelpers

describe('containsOnlyLink', () => {
it('should return true if text only contains url (naked domain)', () => {
Expand Down
2 changes: 1 addition & 1 deletion test/unit_tests/links/LinkPreviewProtoBuilderSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

'use strict';

// grunt test_init && grunt test_run:links/LinkPreviewProtoBuilder
// grunt test_run:links/LinkPreviewProtoBuilder

describe('LinkPreviewProtoBuilder', () => {
const compare_article_with_mock = function(url, offset, preview, mock) {
Expand Down
2 changes: 1 addition & 1 deletion test/unit_tests/links/LinkPreviewRepositorySpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

'use strict';

// grunt test_init && grunt test_run:links/LinkPreviewRepository
// grunt test_run:links/LinkPreviewRepository
describe('z.links.LinkPreviewRepository', () => {
let link_preview_repository = null;

Expand Down
Loading

0 comments on commit 6a0f2d6

Please sign in to comment.