diff --git a/frontend-reactive/README.md b/frontend-reactive/README.md index 2e51809..3fb090c 100644 --- a/frontend-reactive/README.md +++ b/frontend-reactive/README.md @@ -10,7 +10,7 @@ You will need the following things properly installed on your computer. - [Git](https://git-scm.com/) - [Node.js](https://nodejs.org/) (with npm) - [Ember CLI](https://cli.emberjs.com/release/) -- [Google Chrome](https://google.com/chrome/) +- ~~Google Chrome~~ NO, Fuck off. Bad ember. No Chrome. [Firefox](https://www.mozilla.org/en-US/firefox/new/) does the job just fine. Or, if you really want to use Chrome, use [Ungoogled Chromium](https://github.com/ungoogled-software/ungoogled-chromium) ## Installation diff --git a/frontend-reactive/app/components/timeline/note.hbs b/frontend-reactive/app/components/timeline/note.hbs index 3160e95..f88e681 100644 --- a/frontend-reactive/app/components/timeline/note.hbs +++ b/frontend-reactive/app/components/timeline/note.hbs @@ -1,4 +1,4 @@ -
+

{{@username}}

{{@content}}

\ No newline at end of file diff --git a/frontend-reactive/app/styles/app.css b/frontend-reactive/app/styles/app.css index 2763afa..e37ff4e 100644 --- a/frontend-reactive/app/styles/app.css +++ b/frontend-reactive/app/styles/app.css @@ -1 +1,6 @@ /* Ember supports plain CSS out of the box. More info: https://cli.emberjs.com/release/advanced-use/stylesheets/ */ + +.timeline-note { + display: flex; + flex-direction: column; +} diff --git a/frontend-reactive/tests/integration/components/timeline/note-test.ts b/frontend-reactive/tests/integration/components/timeline/note-test.ts index 5a54d1f..53d62ec 100644 --- a/frontend-reactive/tests/integration/components/timeline/note-test.ts +++ b/frontend-reactive/tests/integration/components/timeline/note-test.ts @@ -1,26 +1,25 @@ -import { module, test } from 'qunit'; -import { setupRenderingTest } from 'frontend-reactive/tests/helpers'; -import { render } from '@ember/test-helpers'; -import { hbs } from 'ember-cli-htmlbars'; +import { module, test } from "qunit"; +import { setupRenderingTest } from "frontend-reactive/tests/helpers"; +import { render } from "@ember/test-helpers"; +import { hbs } from "ember-cli-htmlbars"; -module('Integration | Component | timeline/note', function (hooks) { - setupRenderingTest(hooks); +module("Integration | Component | timeline/note", function (hooks) { + setupRenderingTest(hooks); - test('it renders', async function (assert) { - // Set any properties with this.set('myProperty', 'value'); - // Handle any actions with this.set('myAction', function(val) { ... }); + test("it renders", async function (assert) { + // Set any properties with this.set('myProperty', 'value'); + // Handle any actions with this.set('myAction', function(val) { ... }); - await render(hbs``); + await render(hbs``); - assert.dom().hasText(''); + assert.dom().hasText(""); - // Template block usage: - await render(hbs` - - template block text - + // Template block usage: + await render(hbs` + `); - assert.dom().hasText('template block text'); - }); + assert.dom("h3").hasText("bob"); + assert.dom("p").hasText("some content"); + }); });