* added tests for filter.js, Added structure to test-directory
In the gulpfile I changed some of the karma execution to ensure templates.js exists before the tests
Also removed some StandardJS errors from filters.js
* added tests to create at least 50% coverage for filters.js
* Added test for full coverage of filters.js
* fixed 2 side-cases
* Removed duplicate test, improved test-titles and added outcome clarification for dateOrTimeFilter
* Added test-init
While running ``gulp test`` there were a lot of warnings concerning i18n: key not found
This was because init.js was not run.
Because some parts of init.js were not relevant, I created test-init.js, only containing the part concerning localization.
Now the log is a lot cleaner when running ``gulp test``
* added 'use strict' to testing files
* changed local vars to this.
* improved clarity of mistery numbers
* improved in-test structure
* Improved shortUrl tests
* removed unnecessary code
* added cleanup to single test
when now holding the Alt key while selecting a user from the mentions
autocomplete suggestions the text inserted into the composer will be
forced to be in the
@1234567 (firstname)
format (i.e. referring to the user by id and local firstname) instead of
@username
even if the selected user has a username set.
This allows to manually edit the display text ("firstname") of the
mention.
Fixed the errors that would definitly not change the functionality of the program
These include
* Unexpected && and || combinations
* variables with different values defined in same line of code
* Global variable never defined
* spacing/placing errors
These errors were not touched
* variables who are never used
* == and != errors