This file contains 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 { fireEvent, screen } from '@testing-library/react'; | |
import * as useAuthHook from 'hooks/useAuth'; | |
import { MockLoginCredentials } from 'mocks/user'; | |
import { rest } from 'msw'; | |
import { setupServer } from 'msw/node'; | |
import { renderWithAllProviders } from 'utils/test-utils'; | |
import Login from '../Login'; | |
// simulates failed login. | |
const server = setupServer( |
This file contains 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 { Listbox } from '@headlessui/react'; | |
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu'; | |
import { LeadCountRule } from 'dashboard-higher-order-components/pql-workflow/hooks/useGetLeadCountRules'; | |
import useLeadCountRules from 'dashboard-higher-order-components/pql-workflow/hooks/useLeadCountRules'; | |
import useOpportunityQuery from 'dashboard-higher-order-components/pql-workflow/hooks/useOpportunityQuery'; | |
import { useContext, useEffect, useMemo, useRef, useState } from 'react'; | |
import { useDefinePQLStore } from 'stores/PQLDefineStore'; | |
import { useExportPQLStore } from 'stores/PQLExportStore'; | |
import { useFiltersPQLStore } from 'stores/PQLFiltersStore'; | |
import ThemeProvider from 'ThemeProvider'; |
This file contains 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 { cleanup, fireEvent, screen } from '@testing-library/react'; | |
import axios, { AxiosResponse } from 'axios'; | |
import { renderWithAllProviders } from 'utils/customRenderers'; | |
import EditProfile from './EditProfile'; | |
jest.mock('axios'); | |
const mockedAxios = axios as jest.Mocked<typeof axios>; | |
jest.mock('apiClient/client', () => { | |
return { |
This file contains 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
// go routine that reloads the entire map(cMap). | |
go func() { | |
fmt.Println("Start goroutine...") | |
select { | |
case route := <- reload: | |
fmt.Println("Reload goroutine...") | |
// add the exact route to | |
// be monitored to the chainSet | |
fmt.Println(route) | |
case <- start: |
This file contains 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
<form method="post" action="/time_slot_selection"> | |
</form> |
This file contains 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'; | |
import chalk from 'chalk'; | |
import execa from 'execa'; | |
import fs from 'fs'; | |
import path from 'path'; | |
import inquirer from 'inquirer'; | |
import Table from 'cli-table3'; | |
import validate from 'validate-npm-package-name'; | |
import { showBanner } from '../../external/banner'; |
This file contains 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'; | |
import chalk from 'chalk'; | |
import elegantSpinner from 'elegant-spinner'; | |
import fs from 'fs'; | |
import inquirer from 'inquirer'; | |
import logUpdate from 'log-update'; | |
import shell from 'shelljs'; | |
import Table from 'cli-table3'; | |
import validate from 'validate-npm-package-name'; |
This file contains 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 java.util.*; | |
public class List{ | |
Node head; | |
List(){ | |
head = null; | |
} | |
static class Node{ | |
int data; | |
Node next; |
This file contains 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'; | |
const fs = require('fs'); | |
const chalk = require('chalk'); | |
const shell = require('shelljs'); | |
const inquirer = require('inquirer'); | |
const elegantSpinner = require('elegant-spinner'); | |
const logUpdate = require('log-update'); | |
const Table = require('cli-table3'); | |
const validate = require('validate-npm-package-name'); |
This file contains 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'; | |
const fs = require('fs'); | |
const chalk = require('chalk'); | |
const shell = require('shelljs'); | |
const inquirer = require('inquirer'); | |
const elegantSpinner = require('elegant-spinner'); | |
const logUpdate = require('log-update'); | |
const Table = require('cli-table3'); | |
const validate = require('validate-npm-package-name'); |
NewerOlder