This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"lastUpload":"2020-04-30T14:56:04.793Z","extensionVersion":"v3.4.3"} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function bad() { | |
return new Promise(function(resolve, reject) { | |
if (!isValid) { reject() } | |
retrieveMenuFromDatabase(req.session.dbId, req.session.user.MenuGroup) | |
.then(function(menuResult) { | |
getUserFavorites(req.session.dbId, req.session.user.UserID) | |
.then(function(shortCutResults) { | |
// process both responses | |
resolve(calculate(shortCutResults, menuResult)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Enums | |
enum PROMOTION_TYPES { | |
GENERIC, | |
??? | |
} | |
enum PROMOTION_PART_TYPES { | |
TITLE, | |
PLAIN_TEXT, | |
RICH_TEXT, | |
ICON, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"parser": "babel-eslint", | |
"env": { | |
"browser": true, | |
"node": true, | |
"jest": true | |
}, | |
"settings": { | |
"ecmascript": 6, | |
"jsx": true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const path = require('path') | |
const webpack = require('webpack') | |
const HtmlWebpackPlugin = require('html-webpack-plugin') | |
const MiniCssExtractPlugin = require('mini-css-extract-plugin') | |
module.exports = { | |
devtool: | |
process.env.NODE_ENV === 'production' ? 'source-map' : 'eval-source-map', | |
devServer: { | |
contentBase: path.join(__dirname, 'dist'), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* eslint no-unused-vars: 0 */ | |
import { | |
prop, | |
values, | |
filter, | |
startsWith, | |
contains, | |
compose, | |
converge, | |
concat, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Box | |
* | |
* Usage: | |
* <Box | |
* margin='small|medium|large|none' | |
* margin={{ | |
* hz: 'small|medium|large|none', | |
* vt: 'small|medium|large|none' | |
* }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe('The Initialization Form', () => { | |
beforeEach(() => { | |
cy.fixture('config.json').as('config') | |
indexedDB.deleteDatabase('localforage') | |
cy.server() | |
cy.route({ | |
method: 'POST', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import configureMockStore from 'redux-mock-store' | |
import thunk from 'redux-thunk' | |
import * as selectors from '../selectors' | |
const middlewares = [thunk] | |
const mockStore = configureMockStore(middlewares) | |
describe('INVENTORY/SELECTORS', () => { | |
test('barcode to product lookup works', () => { |
NewerOlder