expect(response).toEqualDeeplyContaining({status: 'OK', body: { orders: [{ id: 1}]}});
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
// create an object with all the hook deps | |
const debug = useRef({ | |
currentCampaignId, | |
data: getCampaignQuery.data, | |
getValues, | |
isInitialFormDataSettled, | |
reset, | |
setValue, | |
stepsData, | |
storageStepsState, |
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
/** | |
* Accepts eslint `stdout` and processes all error messages related to React Hooks, if any. | |
* | |
* Essentially, the "fix" is only about adding a respective `eslint-disable-line` comments to mute the error unless it is addressed appropriately. | |
* | |
* Requires the following modules available: | |
* - lodash | |
* | |
* Usage: | |
* |
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
<# | |
.SYNOPSIS | |
Provides possibility to colorize text in console using ANSI sequences. | |
#> | |
using namespace System.Drawing | |
function ToColor { | |
[CmdletBinding()] | |
param ( |
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
#region Scripting | |
function Test-IsConsoleHost { | |
@('ConsoleHost', 'Visual Studio Code Host') -contains ($host.name) | |
} | |
function Get-PromptParam { | |
[CmdletBinding()] | |
param ( | |
[string] $name, |
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 pipeData = function(fn) { | |
return function(data) { | |
return Promise.resolve(fn(data)).then(function(res) { | |
if (res === void 0) { | |
return data; | |
} | |
const keys = Object.keys(res).filter(function(prop) { | |
return res.hasOwnProperty(prop); | |
}); | |
return Promise.all(keys.map(function(prop) { |
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 fs = require("fs"); | |
const path = require("path"); | |
const globby = require("globby"); | |
const srcPath = fn("../src"); | |
const aliases = getAliases(); | |
(async () => { | |
const files = await findFiles(); | |
files |
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 * as React from 'react'; | |
export interface ${NAME}Props { | |
} | |
interface ${NAME}State { | |
} | |
export class ${NAME} extends React.Component<${NAME}Props, ${NAME}State> { |
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
[ | |
{ | |
"surveytype": "BICBD", | |
"surveyid": 173, | |
"bisid": 94, | |
"countryid": 1, | |
"countryname": "United States", | |
"countrycode": "US", | |
"industryid": 17, | |
"industryname": "Traditional Retail Banks", |
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
# Cassandra storage config YAML | |
# NOTE: | |
# See http://wiki.apache.org/cassandra/StorageConfiguration for | |
# full explanations of configuration directives | |
# /NOTE | |
# The name of the cluster. This is mainly used to prevent machines in | |
# one logical cluster from joining another. | |
cluster_name: 'Test Cluster' |
NewerOlder