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,31 @@
import { moduleForComponent, test } from 'ember-qunit';
import hbs from 'htmlbars-inline-precompile';
moduleForComponent('posts/activity-notification', 'Integration | Component | posts/activity notification', {
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.set('notification', {
kind: 'reaction',
notificateableType: 'post'
});
const content = 'undefined person reacted to undefined';
this.render(hbs`{{posts/activity-notification notification=notification}}`);
assert.equal(this.$().text().trim(), content);
// Template block usage:
this.render(hbs`
{{#posts/activity-notification}}
template block text
{{/posts/activity-notification}}
`);
assert.equal(this.$().text().trim(), content);
});

View File

@@ -0,0 +1,25 @@
import { moduleForComponent, test } from 'ember-qunit';
import hbs from 'htmlbars-inline-precompile';
moduleForComponent('posts/post-comment', 'Integration | Component | posts/post comment', {
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`{{posts/post-comment}}`);
assert.equal(this.$().text().trim(), '');
// Template block usage:
this.render(hbs`
{{#posts/post-comment}}
template block text
{{/posts/post-comment}}
`);
assert.equal(this.$().text().trim(), '');
});

View File

@@ -0,0 +1,16 @@
import { moduleForComponent, test } from 'ember-qunit';
import hbs from 'htmlbars-inline-precompile';
moduleForComponent('posts/post-topics', 'Integration | Component | posts/post topics', {
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`{{posts/post-topics}}`);
assert.equal(this.$().text().trim(), '');
});

View File

@@ -0,0 +1,14 @@
import { moduleForComponent, test } from 'ember-qunit';
import hbs from 'htmlbars-inline-precompile';
moduleForComponent('posts/profile-picture', 'Integration | Component | posts/profile picture', {
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`{{posts/profile-picture}}`);
assert.equal(this.$().text().trim(), '');
});

View File

@@ -0,0 +1,27 @@
import { moduleForComponent, test } from 'ember-qunit';
import hbs from 'htmlbars-inline-precompile';
moduleForComponent('posts/topic-comment', 'Integration | Component | posts/topic comment', {
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`{{posts/topic-comment}}`);
const templateText = 'Responded to';
assert.equal(this.$().text().trim(), templateText);
// Template block usage:
this.render(hbs`
{{#posts/topic-comment}}
template block text
{{/posts/topic-comment}}
`);
assert.equal(this.$().text().trim(), templateText);
});

View File

@@ -0,0 +1,18 @@
import { moduleForComponent, test } from 'ember-qunit';
import hbs from 'htmlbars-inline-precompile';
moduleForComponent('posts/topic-post', 'Integration | Component | posts/topic post', {
integration: true
});
test('it renders', function(assert) {
// Set any properties with this.set('myProperty', 'value');
// Handle any actions with this.on('myAction', function(val) { ... });
const templateText = '';
this.render(hbs`{{posts/topic-post}}`);
assert.equal(this.$().text().trim().replace(/\s{2,}/g,', '), templateText);
});