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
export const useSearchConfig = () => useContext(SearchContext); | |
export const useSetSearchConfig = () => useContext(SetSearchContext); | |
export function Application({ children, changingParam }) { | |
const [searchConfig, setSearchConfig] = usePersistentState( | |
`MyComponent${changingParam}`, | |
{ searchTerm: '', sortDirection: ASC }, | |
) | |
return ( |
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 { api } from '@cdm/cdms-data'; | |
import { FeatureContext } from '@cdm/context'; | |
import compact from 'lodash/compact'; | |
import { useCallback, useContext, useReducer } from 'react'; | |
import * as ACTION_TYPE from './actionTypes'; | |
import reducer from './compareReducer'; | |
import initialState from './initialState'; | |
import Step2SecondVersion from './Step2SecondVersion'; | |
export default function useComparisons(init, closeWizard, type) { |
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
/* global __dirname */ | |
var _ = require('lodash'); | |
var log = require('debug')('builder:log'); | |
var debug = require('debug')('builder:debug'); | |
var error = require('debug')('builder:error'); | |
/* File utilities */ | |
var write = require('fs').writeFileSync; | |
var mkdir = require('mkdirp').sync; |
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
module.exports = function (grunt) { | |
'use strict'; | |
require('load-grunt-tasks')(grunt); | |
grunt.renameTask('clean', 'nuke'); | |
grunt.initConfig({ | |
nuke: { | |
work: ['work'] | |
}, |
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
'use strict'; | |
module.exports = function (grunt) { | |
var _, hbs, sass; | |
require('time-grunt')(grunt); | |
require('load-grunt-tasks')(grunt); | |
_ = require('underscore'); | |
grunt.initConfig({ |
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
this.Given(/^I am doing something$/, function (callback) { | |
var browser = this.browser; | |
browser | |
.visit(this.home) | |
.then(function () { | |
browser.clickLink("Link Name") | |
.then(function () { | |
callback(); | |
}).fail(function (e) { | |
callback.fail("Unable to click on Link Name", e); |
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
var hooks = function() { | |
var browser = require("browser.js"); | |
this.Before(function(callback) { | |
console.log('hello'); | |
callback(); | |
}); | |
this.After(function(callback) { | |
console.log('test complete'); |
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
Feature: Mailing Wizard | |
In order to send a Mailing | |
As an Administrator | |
I need to be able to create a Mailing | |
Scenario: Check the first tab has fields | |
Given I am on the Mailing Wizard | |
When I am on the first tab | |
Then I should see a "Mailing Name" input | |
And I should see a "Description" input |