breaking: replace jshint with eslint (#277)

* breaking: remove jshint files and references
* breaking: swap jshint with eslint
* chore: apply eslint auto corrections
* chore: remove jslint inline ignore rule
This commit is contained in:
エリス
2020-06-26 19:31:02 +09:00
committed by GitHub
parent 369f8d148f
commit 893ba08e8f
7 changed files with 73 additions and 72 deletions
+4 -6
View File
@@ -19,20 +19,18 @@
*
*/
/* jshint jasmine: true */
exports.defineAutoTests = function () {
describe('Splashscreen (cordova)', function () {
it("splashscreen.spec.1 should exist", function () {
it('splashscreen.spec.1 should exist', function () {
expect(navigator.splashscreen).toBeDefined();
});
it("splashscreen.spec.2 show method should exist", function () {
it('splashscreen.spec.2 show method should exist', function () {
expect(navigator.splashscreen.show).toBeDefined();
expect(typeof navigator.splashscreen.show).toBe('function');
});
it("splashscreen.spec.3 hide method should exist", function () {
it('splashscreen.spec.3 hide method should exist', function () {
expect(navigator.splashscreen.hide).toBeDefined();
expect(typeof navigator.splashscreen.hide).toBe('function');
});
@@ -40,7 +38,7 @@ exports.defineAutoTests = function () {
};
exports.defineManualTests = function (contentEl, createActionButton) {
function showFor(duration) {
function showFor (duration) {
navigator.splashscreen.show();
window.setTimeout(function () {
navigator.splashscreen.hide();