Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial tests & function docs #7

Merged
merged 5 commits into from
Jul 28, 2018
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
generate test skeletons
  • Loading branch information
nickschot committed Mar 26, 2018
commit 2943c48a9b9eb009aacf549d57fd2c18de99e2b9
14 changes: 7 additions & 7 deletions tests/unit/mixins/pan-recognizer-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ import EmberObject from '@ember/object';
import PanRecognizerMixin from 'ember-mobile-core/mixins/pan-recognizer';
import { module, test } from 'qunit';

module('Unit | Mixin | pan recognizer');

// Replace this with your real tests.
test('it works', function(assert) {
let PanRecognizerObject = EmberObject.extend(PanRecognizerMixin);
let subject = PanRecognizerObject.create();
assert.ok(subject);
module('Unit | Mixin | pan-recognizer', function() {
// Replace this with your real tests.
test('it works', function (assert) {
let PanRecognizerObject = EmberObject.extend(PanRecognizerMixin);
let subject = PanRecognizerObject.create();
assert.ok(subject);
});
});
14 changes: 7 additions & 7 deletions tests/unit/mixins/run-on-raf-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ import EmberObject from '@ember/object';
import RunOnRafMixin from 'ember-mobile-core/mixins/run-on-raf';
import { module, test } from 'qunit';

module('Unit | Mixin | run on raf');

// Replace this with your real tests.
test('it works', function(assert) {
let RunOnRafObject = EmberObject.extend(RunOnRafMixin);
let subject = RunOnRafObject.create();
assert.ok(subject);
module('Unit | Mixin | run-on-raf', function() {
// Replace this with your real tests.
test('it works', function (assert) {
let RunOnRafObject = EmberObject.extend(RunOnRafMixin);
let subject = RunOnRafObject.create();
assert.ok(subject);
});
});
19 changes: 10 additions & 9 deletions tests/unit/services/pan-manager-test.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import { moduleFor, test } from 'ember-qunit';
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';

moduleFor('service:pan-manager', 'Unit | Service | pan manager', {
// Specify the other units that are required for this test.
// needs: ['service:foo']
});
module('Unit | Service | pan-manager', function(hooks) {
setupTest(hooks);

// Replace this with your real tests.
test('it exists', function(assert) {
let service = this.subject();
assert.ok(service);
// Replace this with your real tests.
test('it exists', function(assert) {
let service = this.owner.lookup('service:pan-manager');
assert.ok(service);
});
});

11 changes: 11 additions & 0 deletions tests/unit/utils/get-window-height-test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import getWindowHeight from 'dummy/utils/get-window-height';
import { module, test } from 'qunit';

module('Unit | Utility | get-window-height', function(hooks) {

// Replace this with your real tests.
test('it works', function(assert) {
let result = getWindowHeight();
assert.ok(result);
});
});
11 changes: 11 additions & 0 deletions tests/unit/utils/get-window-width-test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import getWindowWidth from 'dummy/utils/get-window-width';
import { module, test } from 'qunit';

module('Unit | Utility | get-window-width', function(hooks) {

// Replace this with your real tests.
test('it works', function(assert) {
let result = getWindowWidth();
assert.ok(result);
});
});
11 changes: 6 additions & 5 deletions tests/unit/utils/parse-touch-data-test.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import parseTouchData from 'dummy/utils/parse-touch-data';
import { module, test } from 'qunit';

module('Unit | Utility | parse touch data');
module('Unit | Utility | parse-touch-data', function(hooks) {

// Replace this with your real tests.
test('it works', function(assert) {
let result = parseTouchData();
assert.ok(result);
// Replace this with your real tests.
test('it works', function(assert) {
let result = parseTouchData();
assert.ok(result);
});
});