aboutsummaryrefslogtreecommitdiff
path: root/vnext/server/common/MessageUtils.spec.js
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2023-05-31 06:10:51 +0300
committerGravatar Vitaly Takmazov2023-05-31 06:11:05 +0300
commitf2a7ea3af919548d41383734e8a3667086a44bcc (patch)
treee0d9db07956f10ccc4e27fc9e0d45d88950dbfbb /vnext/server/common/MessageUtils.spec.js
parent395185d093b2d6bb46d02830088e00a3a2ca20c1 (diff)
eslint: enforce semicolons only before statement continuation chars
Diffstat (limited to 'vnext/server/common/MessageUtils.spec.js')
-rw-r--r--vnext/server/common/MessageUtils.spec.js32
1 files changed, 16 insertions, 16 deletions
diff --git a/vnext/server/common/MessageUtils.spec.js b/vnext/server/common/MessageUtils.spec.js
index 5e6f64c2..33336795 100644
--- a/vnext/server/common/MessageUtils.spec.js
+++ b/vnext/server/common/MessageUtils.spec.js
@@ -1,4 +1,4 @@
-import { formatTitle, formatMessage, formatQuote } from './MessageUtils';
+import { formatTitle, formatMessage, formatQuote } from './MessageUtils'
describe('Message formatting', () => {
it('Blog message', () => {
@@ -13,11 +13,11 @@ describe('Message formatting', () => {
'people'
],
'body': 'The message'
- };
- expect(formatTitle(msg)).toMatchSnapshot();
- expect(formatQuote(msg)).toMatchSnapshot();
- expect(formatMessage(msg)).toMatchSnapshot();
- });
+ }
+ expect(formatTitle(msg)).toMatchSnapshot()
+ expect(formatQuote(msg)).toMatchSnapshot()
+ expect(formatMessage(msg)).toMatchSnapshot()
+ })
it('Reply message', () => {
let msg = {
'mid': 1,
@@ -28,11 +28,11 @@ describe('Message formatting', () => {
},
'replyQuote': '> The message',
'body': 'The #reply #bla'
- };
- expect(formatTitle(msg)).toMatchSnapshot();
- expect(formatQuote(msg)).toMatchSnapshot();
- expect(formatMessage(msg)).toMatchSnapshot();
- });
+ }
+ expect(formatTitle(msg)).toMatchSnapshot()
+ expect(formatQuote(msg)).toMatchSnapshot()
+ expect(formatMessage(msg)).toMatchSnapshot()
+ })
it('PM', () => {
let msg = {
'user': {
@@ -40,8 +40,8 @@ describe('Message formatting', () => {
'uname': 'ugnich'
},
'body': 'The PM'
- };
- expect(formatTitle(msg)).toMatchSnapshot();
- expect(formatMessage(msg)).toMatchSnapshot();
- });
-});
+ }
+ expect(formatTitle(msg)).toMatchSnapshot()
+ expect(formatMessage(msg)).toMatchSnapshot()
+ })
+})