This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { module, test } from 'qunit'; | |
import { setupRenderingTest } from 'ember-qunit'; | |
import { render, click, fillIn } from '@ember/test-helpers'; | |
import hbs from 'htmlbars-inline-precompile'; | |
import { resolve } from 'rsvp'; | |
const SetUpComponent = async function (context, params) { | |
context.setProperties({ | |
parentReportModel: params.parentReportModel, | |
rating: params.rating, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { module, test } from 'qunit'; | |
import { setupRenderingTest } from 'ember-qunit'; | |
import { render } from '@ember/test-helpers'; | |
import { hbs } from 'ember-cli-htmlbars'; | |
const SetUpComponent = async function (context, params) { | |
context.setProperties({ | |
report: params.report, | |
editReports: params.editReports, | |
isMobileFreeUser: params.isMobileFreeUser, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Component thousand-limit-reached | |
import { module, test } from 'qunit'; | |
import { setupRenderingTest } from 'ember-qunit'; | |
import { render } from '@ember/test-helpers'; | |
import { hbs } from 'ember-cli-htmlbars'; | |
module('Integration | Component | thousand limit reached', function (hooks) { | |
setupRenderingTest(hooks); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const SIGN_NAMES = [ | |
{ | |
sign: 'Aquarius', | |
start: { | |
day: 20, | |
month: 1, | |
}, | |
end: { | |
day: 18, | |
month: 2, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Named Function Declaration: | |
function test () { | |
// code | |
} | |
2. Anonymous Function Declaration (Usually callbacks) | |
array.forEach(function (item){}) | |
3. Named Function Expression | |
var x = function test (a, b) {return a * b}; |