added 260907 version of worker toolkit

This commit is contained in:
2026-09-08 20:30:51 -04:00
parent cbd3f0f8ca
commit 97aca37663
1283 changed files with 142951 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
import { moduleForComponent, test } from 'ember-qunit';
import hbs from 'htmlbars-inline-precompile';
moduleForComponent('checkin/promotion-step', 'Integration | Component | checkin/promotion step', {
integration: true,
});
test('it renders', function(assert) {
// Set any properties with this.set('myProperty', 'value');
// Handle any actions with this.on('myAction', function(val) { ... });
this.render(hbs`{{checkin/promotion-step}}`);
let result = 'How likely is it that you would recommend Flaredown to a friend';
assert.equal(this.$().text().trim().match(result)[0], result);
// Template block usage:
this.render(hbs`
{{#checkin/promotion-step}}
template block text
{{/checkin/promotion-step}}
`);
assert.equal(this.$().text().trim().match(result)[0], result);
});

View File

@@ -0,0 +1,34 @@
import { moduleForComponent, test } from 'ember-qunit';
import hbs from 'htmlbars-inline-precompile';
import Ember from 'ember';
moduleForComponent('checkin/summary-posts', 'Integration | Component | checkin/summary posts', {
integration: true,
beforeEach: function() {
this.register('service:store', Ember.Service.extend({
query(){}
}));
// Calling inject puts the service instance in the context of the test,
// making it accessible as "locationService" within each test
this.inject.service('store', { as: 'store' });
}
});
test('it renders', function(assert) {
// Set any properties with this.set('myProperty', 'value');
// Handle any actions with this.on('myAction', function(val) { ... });
this.render(hbs`{{checkin/summary-posts}}`);
assert.equal(this.$().text().trim(), 'Your daily digest');
// Template block usage:
this.render(hbs`
{{#checkin/summary-posts}}
template block text
{{/checkin/summary-posts}}
`);
assert.equal(this.$().text().trim(), 'Your daily digest');
});

View File

@@ -0,0 +1,19 @@
import { moduleForComponent, test } from 'ember-qunit';
import hbs from 'htmlbars-inline-precompile';
moduleForComponent('checkin/weather-step', 'Integration | Component | checkin/weather step', {
integration: true
});
test('it renders', function(assert) {
// Set any properties with this.set('myProperty', 'value');
// Handle any actions with this.on('myAction', function(val) { ... });
this.render(hbs`{{checkin/weather-step}}`);
assert.equal(
this.$().text().trim().replace(/\s+/g, ' '),
'Weather To enable weather tracking, enter your location below Submit'
);
});