Skip to content

Commit

Permalink
chore: commit hook
Browse files Browse the repository at this point in the history
  • Loading branch information
albert-sf committed May 31, 2022
1 parent ab44319 commit 6956346
Show file tree
Hide file tree
Showing 9 changed files with 37 additions and 46 deletions.
2 changes: 1 addition & 1 deletion .husky/pre-commit
@@ -1,4 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

ember test
yarn test
4 changes: 1 addition & 3 deletions config/dependency-lint.js
@@ -1,5 +1,3 @@
'use strict';

module.exports = {

};
module.exports = {};
5 changes: 2 additions & 3 deletions index.js
Expand Up @@ -5,13 +5,12 @@ module.exports = {
name: require('./package').name,
included(app, parentAddon) {
this._super.included.apply(this, arguments);
let target = (parentAddon || app);
let target = parentAddon || app;
// Now you can modify the app / parentAddon. For example, if you wanted
// to include a custom preprocessor, you could add it to the target's
// registry:
//
// target.registry.add('js', myPreprocessor);
target.import('./vendor/aspect-ratio-image.css');
}

},
};
4 changes: 3 additions & 1 deletion package.json
Expand Up @@ -105,7 +105,9 @@
"ember-addon": {
"configPath": "tests/dummy/config"
},
"resolutions": {},
"resolutions": {
"@glimmer/tracking": "^1.1.2"
},
"volta": {
"node": "16.0.0",
"yarn": "1.22.10"
Expand Down
12 changes: 6 additions & 6 deletions tests/dummy/app/controllers/index.js
@@ -1,7 +1,7 @@
import Controller from "@ember/controller";
import { alias } from "@ember/object/computed";
import Controller from '@ember/controller';


export default Controller.extend({
images: alias("modal")
});
export default class IndexController extends Controller {
get images() {
return this.model;
}
}
36 changes: 18 additions & 18 deletions tests/dummy/app/routes/index.js
@@ -1,22 +1,22 @@
import Route from '@ember/routing/route';

export default Route.extend({
model() {
export default class AppRoute extends Route {
get model() {
return [
"http://placekitten.com/2000/1125",
"http://placekitten.com/2000/1126",
"http://placekitten.com/2000/1127",
"http://placekitten.com/2000/1128",
"http://placekitten.com/2000/1129",
"http://placekitten.com/2000/1130",
"http://placekitten.com/2000/1101",
"http://placekitten.com/2000/1102",
"http://placekitten.com/2000/1103",
"http://placekitten.com/2000/1104",
"http://placekitten.com/2000/1105",
"http://placekitten.com/2000/1106",
"http://placekitten.com/2000/1107",
"http://placekitten.com/2000/1108",
]
'http://placekitten.com/2000/1125',
'http://placekitten.com/2000/1126',
'http://placekitten.com/2000/1127',
'http://placekitten.com/2000/1128',
'http://placekitten.com/2000/1129',
'http://placekitten.com/2000/1130',
'http://placekitten.com/2000/1101',
'http://placekitten.com/2000/1102',
'http://placekitten.com/2000/1103',
'http://placekitten.com/2000/1104',
'http://placekitten.com/2000/1105',
'http://placekitten.com/2000/1106',
'http://placekitten.com/2000/1107',
'http://placekitten.com/2000/1108',
];
}
});
}
4 changes: 2 additions & 2 deletions tests/integration/modifiers/auto-scale-test.js
Expand Up @@ -3,11 +3,11 @@ import { setupRenderingTest } from 'ember-qunit';
import { render } from '@ember/test-helpers';
import { hbs } from 'ember-cli-htmlbars';

module('Integration | Modifier | auto-scale', function(hooks) {
module('Integration | Modifier | auto-scale', function (hooks) {
setupRenderingTest(hooks);

// Replace this with your real tests.
test('it renders', async function(assert) {
test('it renders', async function (assert) {
await render(hbs`<div {{auto-scale}}></div>`);

assert.ok(true);
Expand Down
6 changes: 3 additions & 3 deletions tests/unit/routes/application-test.js
@@ -1,11 +1,11 @@
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';

module('Unit | Route | application', function(hooks) {
module('Unit | Route | application', function (hooks) {
setupTest(hooks);

test('it shouldn\'t exists', function(assert) {
test("it shouldn't exists", function (assert) {
let route = this.owner.lookup('route:application');
assert.ok(route == null);
assert.strictEqual(route, null);
});
});
10 changes: 1 addition & 9 deletions yarn.lock
Expand Up @@ -3164,15 +3164,7 @@
"@handlebars/parser" "~2.0.0"
simple-html-tokenizer "^0.5.11"

"@glimmer/tracking@^1.0.2":
version "1.0.4"
resolved "https://registry.yarnpkg.com/@glimmer/tracking/-/tracking-1.0.4.tgz#f1bc1412fe5e2236d0f8d502994a8f88af1bbb21"
integrity sha512-F+oT8I55ba2puSGIzInmVrv/8QA2PcK1VD+GWgFMhF6WC97D+uZX7BFg+a3s/2N4FVBq5KHE+QxZzgazM151Yw==
dependencies:
"@glimmer/env" "^0.1.7"
"@glimmer/validator" "^0.44.0"

"@glimmer/tracking@^1.1.2":
"@glimmer/tracking@^1.0.2", "@glimmer/tracking@^1.1.2":
version "1.1.2"
resolved "https://registry.npmjs.org/@glimmer/tracking/-/tracking-1.1.2.tgz#74e71be07b0a7066518d24044d2665d0cf8281eb"
integrity sha512-cyV32zsHh+CnftuRX84ALZpd2rpbDrhLhJnTXn9W//QpqdRZ5rdMsxSY9fOsj0CKEc706tmEU299oNnDc0d7tA==
Expand Down

0 comments on commit 6956346

Please sign in to comment.