Sha256: 137b4dff88e9e69d6460fd000c2233142b38bbe48eb0f84de7014e6c5a2ad679

Contents?: true

Size: 1001 Bytes

Versions: 1

Compression:

Stored size: 1001 Bytes

Contents

import { moduleFor, RenderingTest } from '../../utils/test-case';
import { Checkbox, Component, LinkComponent, TextArea, TextField } from '@ember/-internals/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

1 entries across 1 versions & 1 rubygems

Version Path
discourse-ember-source-3.6.0.0 dist/es/@ember/-internals/glimmer/tests/integration/components/to-string-test.js