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
// before | |
intl.formatMessage( | |
{ | |
id: 'TemplateSearchResults.templates', | |
defaultMessage: | |
'{templatesCount, plural, one {{templatesCount} template} other {{templatesCount} templates}}', | |
description: 'Number of templates in a section', | |
}, | |
{ | |
templatesCount: category.numberOfTemplates, |
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 { TSESTree } from "@typescript-eslint/typescript-estree" | |
import { Rule } from "eslint" | |
import { isNotNullish } from "@notionhq/shared/typeUtils" | |
function closest( | |
node: TSESTree.Node, | |
predicate: (node: TSESTree.Node) => boolean | |
) { | |
let current = node |
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 React from 'react'; | |
import { render } from '@testing-library/react'; | |
import { queryAllByTableHeader } from './tables'; | |
describe('table testing utils', () => { | |
it('test', () => { | |
render( | |
<div role="region" aria-labelledby="caption-id"> | |
<table> |