⏺ HTML Output Style Guidelines
Base HTML Template
<title>Page Title</title>⏺ HTML Output Style Guidelines
Base HTML Template
<title>Page Title</title>| this is a great and wonderful day, everyhing is awesome great super well |
| version: '3.8' | |
| services: | |
| db: | |
| image: timescale/timescaledb-ha:pg17 | |
| container_name: timescaledb | |
| restart: always | |
| environment: | |
| POSTGRES_PASSWORD: postgres | |
| ports: |
| function walkDOMTree( | |
| root, | |
| whatToShow = NodeFilter.SHOW_ALL, | |
| { inspect, collect, callback } = {} | |
| ) { | |
| const walker = document.createTreeWalker(root, whatToShow, { | |
| acceptNode(node) { | |
| if (inspect && !inspect(node)) { | |
| return NodeFilter.FILTER_REJECT; | |
| } |
| import {mockFetchResponse} from 'test-utils/mock-fetch-response'; | |
| test(`logging in displays the user's username`, async () => { | |
| const {mockSuccessResponse, fetchPromise} = mockFetchResponse(); | |
| window.fetch = jest.fn().mockReturnValueOnce(fetchPromise); | |
| render(<Login />) | |
| const {username, password} = buildLoginForm() | |
| userEvent.type(screen.getByLabelText(/username/i), username) | |
| userEvent.type(screen.getByLabelText(/password/i), password) |
| module.exports = { | |
| env: { | |
| browser: true, | |
| es2021: true, | |
| node: true, | |
| }, | |
| extends: [ | |
| 'plugin:react/recommended', | |
| 'plugin:prettier/recommended', | |
| 'plugin:react-hooks/recommended', |
| { | |
| "printWidth": 160, | |
| "tabWidth": 2, | |
| "useTabs": false, | |
| "semi": true, | |
| "singleQuote": true, | |
| "trailingComma": "es5", | |
| "bracketSpacing": true, | |
| "jsxBracketSameLine": false, | |
| "arrowParens": "always" |
| function withStateSlice(Comp, slice) { | |
| const MemoComp = React.memo(Comp); | |
| function Wrapper(props, ref) { | |
| const state = useAppState(); | |
| const cell = slice(state, props); | |
| return <MemoComp ref={ref} state={cell} {...props} />; | |
| } | |
| Wrapper.displayName = `withStateSlice(${Comp.displayName || Comp.name})`; | |
| return React.memo(React.forwardRef(Wrapper)); | |
| } |
| { | |
| "presets": [ | |
| "env" | |
| ] | |
| } |
| const capitalize = require('./index'); | |
| test('Capitalize is a function', () => { | |
| expect(typeof capitalize).toEqual('function'); | |
| }); | |
| test('capitalizes the first letter of every word in a sentence', () => { | |
| expect(capitalize('hi there, how is it going?')).toEqual( | |
| 'Hi There, How Is It Going?' | |
| ); |