Use single quotes for identifiers

This commit is contained in:
Daniel Gasienica 2018-04-11 15:44:52 -04:00
parent 819671a23a
commit 24f4ad53bc
15 changed files with 73 additions and 73 deletions

View file

@ -29,15 +29,15 @@ exports.createConversation = async ({
} = {}) => {
if (!isObject(ConversationController) ||
!isFunction(ConversationController.getOrCreateAndWait)) {
throw new TypeError('"ConversationController" is required');
throw new TypeError("'ConversationController' is required");
}
if (!isNumber(numMessages) || numMessages <= 0) {
throw new TypeError('"numMessages" must be a positive number');
throw new TypeError("'numMessages' must be a positive number");
}
if (!isFunction(WhisperMessage)) {
throw new TypeError('"WhisperMessage" is required');
throw new TypeError("'WhisperMessage' is required");
}
const conversation =
@ -80,7 +80,7 @@ const SAMPLE_MESSAGES = [
const ATTACHMENT_SAMPLE_RATE = 0.33;
const createRandomMessage = async ({ conversationId } = {}) => {
if (!isString(conversationId)) {
throw new TypeError('"conversationId" must be a string');
throw new TypeError("'conversationId' must be a string");
}
const sentAt = Date.now() - random(100 * 24 * 60 * 60 * 1000);