Skip to content

Commit

Permalink
[MM-20468] Migrate 'components/emoji/add_emoji' module and associated…
Browse files Browse the repository at this point in the history
… tests to TypeScript (mattermost#6623)

* GH-15472: migrate add emoji to ts

* GH-15474: fixed lint issues

* GH-15472: applied review fixes

Co-authored-by: Mattermod <[email protected]>
  • Loading branch information
ataboo and mattermod committed Oct 16, 2020
1 parent 5afbb25 commit f89160c
Show file tree
Hide file tree
Showing 10 changed files with 574 additions and 187 deletions.
3 changes: 0 additions & 3 deletions components/__snapshots__/spinner_button.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

exports[`components/SpinnerButton should match snapshot with children 1`] = `
<button
className="btn btn-primary"
disabled={false}
>
<LoadingWrapper
Expand All @@ -21,7 +20,6 @@ exports[`components/SpinnerButton should match snapshot with children 1`] = `

exports[`components/SpinnerButton should match snapshot with required props 1`] = `
<button
className="btn btn-primary"
disabled={false}
>
<LoadingWrapper
Expand All @@ -33,7 +31,6 @@ exports[`components/SpinnerButton should match snapshot with required props 1`]

exports[`components/SpinnerButton should match snapshot with spinning 1`] = `
<button
className="btn btn-primary"
disabled={true}
>
<LoadingWrapper
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ exports[`components/emoji/components/AddEmoji should match snapshot 1`] = `
<input
className="form-control"
id="name"
maxLength="64"
maxLength={64}
onChange={[Function]}
type="text"
value=""
Expand Down Expand Up @@ -182,7 +182,7 @@ exports[`components/emoji/components/AddEmoji should select a file and match sna
<input
className="form-control"
id="name"
maxLength="64"
maxLength={64}
onChange={[Function]}
type="text"
value=""
Expand Down Expand Up @@ -357,7 +357,7 @@ exports[`components/emoji/components/AddEmoji should update emoji name and match
<input
className="form-control"
id="name"
maxLength="64"
maxLength={64}
onChange={[Function]}
type="text"
value="emojiName"
Expand Down
122 changes: 0 additions & 122 deletions components/emoji/add_emoji/add_emoji.test.js

This file was deleted.

Loading

0 comments on commit f89160c

Please sign in to comment.