Skip to content

one-way-number-mask types one or many "0" characters in odd circumstances #117

@hergaiety

Description

@hergaiety

I've written these two failing tests for one-way-number-mask-test.js.

  test('It does not input a zero when hitting "."', async function(assert) {
    await render(hbs`<OneWayNumberMask />`);
    await fillIn('input', '.');

    assert.dom('input').hasValue('');
  });

  test('It does not input a zero when hitting "m"', async function(assert) { // This also happens with the letter `k`
    await render(hbs`<OneWayNumberMask />`);
    await fillIn('input', 'm');

    assert.dom('input').hasValue('');
  });

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions