Commit ee90edae authored by Filipa Lacerda's avatar Filipa Lacerda

Fix broken tests

parent 601dc0d8
...@@ -94,9 +94,8 @@ export default class ImageFile { ...@@ -94,9 +94,8 @@ export default class ImageFile {
}); });
return [maxWidth, maxHeight]; return [maxWidth, maxHeight];
} }
// eslint-disable-next-line class-methods-use-this // eslint-disable-next-line
views() { views = {
return {
'two-up': function() { 'two-up': function() {
return $('.two-up.view .wrap', this.file).each((function(_this) { return $('.two-up.view .wrap', this.file).each((function(_this) {
return function(index, wrap) { return function(index, wrap) {
...@@ -191,7 +190,6 @@ export default class ImageFile { ...@@ -191,7 +190,6 @@ export default class ImageFile {
}; };
})(this)); })(this));
} }
};
} }
requestImageInfo(img, callback) { requestImageInfo(img, callback) {
......
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
<div <div
:id="id" :id="id"
class="modal" class="modal"
:class="id !== '' ? '' : 'show'" :class="id === '' ? '' : 'show'"
role="dialog" role="dialog"
tabindex="-1" tabindex="-1"
> >
...@@ -147,7 +147,7 @@ ...@@ -147,7 +147,7 @@
</div> </div>
</div> </div>
<div <div
v-if="id !== ''" v-if="id === ''"
class="modal-backdrop fade in" class="modal-backdrop fade in"
> >
</div> </div>
......
...@@ -2419,9 +2419,9 @@ eslint-visitor-keys@^1.0.0: ...@@ -2419,9 +2419,9 @@ eslint-visitor-keys@^1.0.0:
version "1.0.0" version "1.0.0"
resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-1.0.0.tgz#3f3180fb2e291017716acb4c9d6d5b5c34a6a81d" resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-1.0.0.tgz#3f3180fb2e291017716acb4c9d6d5b5c34a6a81d"
eslint@3.18.0: eslint@^3.18.0:
version "3.18.0" version "3.19.0"
resolved "https://registry.yarnpkg.com/eslint/-/eslint-3.18.0.tgz#647e985c4ae71502d20ac62c109f66d5104c8a4b" resolved "https://registry.yarnpkg.com/eslint/-/eslint-3.19.0.tgz#c8fc6201c7f40dd08941b87c085767386a679acc"
dependencies: dependencies:
babel-code-frame "^6.16.0" babel-code-frame "^6.16.0"
chalk "^1.1.3" chalk "^1.1.3"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment