Skip to content

Commit

Permalink
rewriteHTML tests types: Mark an object type as exact.
Browse files Browse the repository at this point in the history
An instance of zulip#3452.
  • Loading branch information
chrisbobbe committed Mar 10, 2021
1 parent acc2f13 commit d7e94f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/webview/js/__tests__/rewriteHtml-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ describe('rewriteHtml', () => {
email: 'rosencrantz+guildenstern@zulip.com',
};

const rewrite = (src: string): { input: string, before: string, after: string } => {
const rewrite = (src: string): {| input: string, before: string, after: string |} => {
const img = document.createElement('img');
img.setAttribute('src', src);
const before = img.src;
Expand Down

0 comments on commit d7e94f0

Please sign in to comment.