Sha256: 1f3bb007f501f45c9e39f4b6c8303bc1838b174fc78c4e55de41369f03512e49

Contents?: true

Size: 989 Bytes

Versions: 2

Compression:

Stored size: 989 Bytes

Contents

import { moduleFor, RenderingTest } from '../../utils/test-case';
import { Checkbox, Component, LinkComponent, TextArea, TextField } from 'ember-glimmer';

moduleFor(
  'built-in component toString',
  class AbstractAppendTest extends RenderingTest {
    '@test text-field has the correct toString value'(assert) {
      assert.strictEqual(TextField.toString(), '@ember/component/text-field');
    }

    '@test checkbox has the correct toString value'(assert) {
      assert.strictEqual(Checkbox.toString(), '@ember/component/checkbox');
    }

    '@test text-area has the correct toString value'(assert) {
      assert.strictEqual(TextArea.toString(), '@ember/component/text-area');
    }

    '@test component has the correct toString value'(assert) {
      assert.strictEqual(Component.toString(), '@ember/component');
    }

    '@test LinkTo has the correct toString value'(assert) {
      assert.strictEqual(LinkComponent.toString(), '@ember/routing/link-component');
    }
  }
);

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
discourse-ember-source-3.5.1.1 dist/es/ember-glimmer/tests/integration/components/to-string-test.js
discourse-ember-source-3.5.1.0 dist/dist/es/ember-glimmer/tests/integration/components/to-string-test.js