Paragraphs are separated by a blank line.
2nd paragraph. Italic, bold, and monospace
. Itemized lists
look like:
- this one
- that one
const leaveTag = "label-to-which-the-emails-are-marked"; | |
const calendarId = "new-calendar-id"; | |
const nameRegEx = /Leave plan for (?<name>.*) is as below/; | |
const leaveTypeRegEx = /Leave Type:\s*(?<type>(.)*)?/; | |
const startDateRegEx = /Start Date:\s*(?<leave>(?:.*)202.)(?:,\s)*(?:(Half-Day:\s*(.*)))?/; | |
const endDateRegEx = /End Date:\s*(?<leave>(?:.*)202.)(?:,\s)*(?:(Half-Day:\s*(.*)))?/; | |
function applyRegEx(regEx, key, messageBody){ | |
const matches = regEx.exec(messageBody); | |
return matches?.groups && matches.groups[key] ? matches.groups[key] : undefined; |
import logger from './logger'; | |
export class AppError extends Error { | |
statusCode: number; | |
message: string; | |
constructor(statusCode, message) { | |
super(message); | |
this.statusCode = statusCode; | |
this.message = message; |
const templateFileMapper = [{template: "temp1.hbs", file: "temp1.html"}, | |
{template: "temp2.hbs", file: "temp2.html"}, | |
{template: "temp3.hbs", file: "temp3.html"}]; | |
const htmlPlugins = () => { | |
return templateFileMapper.map(entry => { | |
return new HtmlWebpackPlugin({ | |
template: entry.template, | |
filename: entry.file, | |
}); |
.panel--1UaEBftHJ4F { | |
margin-top: 10px; | |
font-size: 150%; | |
} |
<OrderSection> | |
<SearchTile | |
orderId={this.props.orderId} /> | |
</OrderSection> |
(ns app.migration | |
(:require [environ.core :refer [env]]) | |
(:import org.flywaydb.core.Flyway | |
org.flywaydb.core.internal.info.MigrationInfoDumper)) | |
;; Build DB String from the Environment Variables | |
(def db-url (str "jdbc:postgresql://" | |
(env :pg-db-host) ":" | |
(env :pg-db-port) "/" (env :pg-db-name))) |
alert('Injected!'); |
I hereby claim:
To claim this, I am signing this object:
import * as helpers from '../src/helpers'; | |
describe('formatDate', () => { | |
it('should invoke localString implementation to format date ', () => { | |
const localStringMock = jest.fn(); | |
const mockDate = { toLocaleString: localStringMock }; | |
helpers.formatDate(mockDate); | |
expect(localStringMock).toHaveBeenCalledWith('de-DE', { | |
year: 'numeric', | |
month: '2-digit', | |
day: '2-digit', |