Skip to content

Commit

Permalink
changing duration type to ms, s, m (#62265)
Browse files Browse the repository at this point in the history
  • Loading branch information
cauemarcondes authored Apr 2, 2020
1 parent f747057 commit a06e33e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ describe('durationRt', () => {
});

describe('It should accept', () => {
['1s', '2m', '3h'].map(input => {
['1000ms', '2s', '3m'].map(input => {
it(`${JSON.stringify(input)}`, () => {
expect(isRight(durationRt.decode(input))).toBe(true);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import * as t from 'io-ts';
import { either } from 'fp-ts/lib/Either';
import { amountAndUnitToObject } from '../amount_and_unit';

export const DURATION_UNITS = ['s', 'm', 'h'];
export const DURATION_UNITS = ['ms', 's', 'm'];

export const durationRt = new t.Type<string, string, unknown>(
'durationRt',
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a06e33e

Please sign in to comment.