Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .typos.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[default.extend-identifiers]
"1beed833" = "1beed833"
"8ba6de7" = "8ba6de7"
"ba952037" = "ba952037"
"metatada" = "metatada"
"tenup_headless_wp_search_title_variables_replacments" = "tenup_headless_wp_search_title_variables_replacments"

[default.extend-words]
"automattic" = "automattic"
"Bui" = "Bui"
"conveniant" = "conveniant"
"convenit" = "convenit"
"littel" = "littel"
"MILION" = "MILION"
"nam" = "nam"
"optio" = "optio"
"varius" = "varius"
3 changes: 1 addition & 2 deletions docs/documentation/01-Getting Started/headless-config.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ module.exports = {
}
```

Another use case is if you want your posts to sit at a different prefix (e.g: `/blog`), you can change your permalinks in WordPress (e.g: `/blog/%postname/`) and update the default `post` post type so that its `sigle` property is equal to `/blog`.
Another use case is if you want your posts to sit at a different prefix (e.g: `/blog`), you can change your permalinks in WordPress (e.g: `/blog/%postname/`) and update the default `post` post type so that its `single` property is equal to `/blog`.

```js title="headstartwp.config.js"
module.exports = {
Expand Down Expand Up @@ -275,4 +275,3 @@ module.exports = {
```

More for info check out the [preview docs](/learn/wordpress-integration/previews#the-usepostlinkforredirect-setting).

2 changes: 1 addition & 1 deletion docs/src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import SearchBar from '@theme/SearchBar';

import guideSketch from '@site/static/img/guides-sketch.png';
import referenceSketch from '@site/static/img/reference-sketch.png';
import principlesSketch from '@site/static/img/priciples-sketch.png';
import principlesSketch from '@site/static/img/principles-sketch.png';

import styles from './index.module.css';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ module.exports = {
}
```

Another use case is if you want your posts to sit at a different prefix (e.g: `/blog`), you can change your permalinks in WordPress (e.g: `/blog/%postname/`) and update the default `post` post type so that its `sigle` property is equal to `/blog`.
Another use case is if you want your posts to sit at a different prefix (e.g: `/blog`), you can change your permalinks in WordPress (e.g: `/blog/%postname/`) and update the default `post` post type so that its `single` property is equal to `/blog`.

```js title="headstartwp.config.js"
module.exports = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,11 +153,10 @@ const ArchivePage = () => {
## Accessing embeddable data
By default, the Search Results endpoints only return the object of the associated search results but do not return embeddable data of the search results entities themselves. For instance, when searching for posts, even if you pass the `_embed` parameter, WordPress won't return the associated term objects, author objects etc.

HeadstartWP plugin extends the core endpoint so that it returns these embedded objects to avoid the need for additional queries. Check the [PostSearchEntity](/api/@headstartwp/core/interfaces/PostSearchEntity/) and [TermSearcheEntity](/api/@headstartwp/core/interfaces/TermSearchEntity/).
HeadstartWP plugin extends the core endpoint so that it returns these embedded objects to avoid the need for additional queries. Check the [PostSearchEntity](/api/@headstartwp/core/interfaces/PostSearchEntity/) and [TermSearchEntity](/api/@headstartwp/core/interfaces/TermSearchEntity/).

## QueriedObject

The `useNativeSearch` hook also exposes a `queriedObject`.

The queried object for this hook is an object of type [SearchEntity](/api/@headstartwp/core/interfaces/SearchEntity/).

Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ Another thing you want to consider is flushing the CDN cache **after** you reval

```php
add_filter( 'tenup_headless_wp_revalidate', function( $post, $front_end_post_url ) {
// $front_end_psot_url is the URL for the post with the front-end/headless url.
// $front_end_post_url is the URL for the post with the front-end/headless url.
function_to_clear_my_favorite_cdn_cache( $front_end_post_url );
}, 10, 2 );
```
Expand All @@ -155,4 +155,4 @@ If you prefer to run the revalidation logic in the background, you can tell the
add_filter( 'tenup_headless_wp_revalidate_on_cron', '___return_true' );
```

This can be useful when the revalidation or the CDN cache purge is slow sp this can be used to speed up the post saving process.
This can be useful when the revalidation or the CDN cache purge is slow sp this can be used to speed up the post saving process.
Original file line number Diff line number Diff line change
Expand Up @@ -152,4 +152,4 @@ interface Window {

## Running the typecheck

By default Next.js will run `tsc` to validate your types. If type checking fails your build will fail. Therefore we recommend running `tsc --noEmit` before commiting and/or on your CI prior to merging PRs.
By default Next.js will run `tsc` to validate your types. If type checking fails your build will fail. Therefore we recommend running `tsc --noEmit` before committing and/or on your CI prior to merging PRs.
2 changes: 1 addition & 1 deletion packages/block-primitives/src/shared/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export type ImagePrimitiveValue = {
*/
height: number;

sizes: Record<string, { url: string; width: number; height: number; orientantion: string }>;
sizes: Record<string, { url: string; width: number; height: number; orientation: string }>;
};

/**
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/dom/__tests__/wpKsesPost.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ describe('wp_kses_post', () => {
).toBe(`<script type="text/json-block">${JSON.stringify(json_object)}</script>`);
});

it('allows whiltelisted css properties', () => {
it('allows whitelisted css properties', () => {
expect(
wpKsesPost('<div style="color:var(--blue); --white:#ffffff; flex-basis:100px;" />'),
).toBe('<div style="color:var(--blue); --white:#ffffff; flex-basis:100px;" />');
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/react/blocks/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export * from './DebugBlock';
export * from './HeadingBlock';
export * from './QuoteBlock';
export * from './PullQuote';
export * from './PreformatedBlock';
export * from './PreformattedBlock';
export * from './VerseBlock';
export * from './TableBlock';
export * from './GroupBlock';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ describe('useFetchPostOrPosts', () => {
},
);

// the data for useFetchPost should be avaliable immediatelly without a fetch
// the data for useFetchPost should be available immediately without a fetch
// so this test should pass without waitFor
expect(result2.current.data?.post.slug).toBe(
'distinctio-rerum-ratione-maxime-repudiandae-laboriosam-quam',
Expand Down Expand Up @@ -195,7 +195,7 @@ describe('useFetchPostOrPosts', () => {
},
);

// the data for useFetchPosts should be avaliable immediatelly without a fetch
// the data for useFetchPosts should be available immediately without a fetch
// so this test should pass without waitFor
expect(result2.current.data?.posts?.length).toBeGreaterThan(0);
(result.current.data?.posts as PostEntity[]).forEach((post) => {
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/react/hooks/useFetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export function useFetch<E, Params extends EndpointParams, R = E>(
finalParams,
);

// mutate additiional cache objects
// mutate additional cache objects
if (additionalCacheObjects) {
additionalCacheObjects.forEach(({ key, data }) => {
mutate(key, data);
Expand Down
12 changes: 6 additions & 6 deletions packages/core/src/react/provider/__tests__/useThemeSetting.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ describe('useThemeSetting', () => {
});

test('it returns values from settings', () => {
const defaultPallete = [
const defaultPalette = [
{
name: 'Black',
slug: 'black',
Expand All @@ -56,7 +56,7 @@ describe('useThemeSetting', () => {
},
];

const blockPallete = [
const blockPalette = [
{
name: 'white',
slug: 'white',
Expand All @@ -69,15 +69,15 @@ describe('useThemeSetting', () => {
settings: {
color: {
palette: {
default: defaultPallete,
default: defaultPalette,
},
},

blocks: {
'core/button': {
color: {
palette: {
theme: blockPallete,
theme: blockPalette,
},
},
},
Expand All @@ -95,7 +95,7 @@ describe('useThemeSetting', () => {
},
);

expect(result1.current).toMatchObject(defaultPallete);
expect(result1.current).toMatchObject(defaultPalette);

const { result: result2 } = renderHook(
() => useThemeSetting('color.palette.theme', 'core/button', []),
Expand All @@ -104,6 +104,6 @@ describe('useThemeSetting', () => {
},
);

expect(result2.current).toMatchObject(blockPallete);
expect(result2.current).toMatchObject(blockPalette);
});
});
6 changes: 3 additions & 3 deletions packages/core/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ export type CustomTaxonomy = {
/**
* Whether this custom taxonomy should match the archive path
*
* If set to true, then when querying a taxonomy archive page such as `/[taxonmy-slug]/[term-slug]` the
* If set to true, then when querying a taxonomy archive page such as `/[taxonomy-slug]/[term-slug]` the
* `term.link` property should match the current path. This will avoid matching nested categories that doesn't exist for instance:
* `/[taxonmy-slug]/fake-parent-term/[term-slug]` will not match if this option is set to true even though `term-slug` exists.
* `/[taxonomy-slug]/fake-parent-term/[term-slug]` will not match if this option is set to true even though `term-slug` exists.
*
* @default false
*/
Expand Down Expand Up @@ -123,7 +123,7 @@ export type FetchStrategyCacheConfig = {
* If set, this function will be executed after restoring data from cache (cache.get) and can be used
* to reconstruct things that were removed in beforeSet.
*
* @param fetcbStrategy The fetch strategy instnace
* @param fetcbStrategy The fetch strategy instance
* @returns
*/
afterGet?: <E, P extends EndpointParams, R>(
Expand Down
10 changes: 5 additions & 5 deletions packages/core/test/__fixtures__/posts/pages.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@
"rendered": "Debug Blocks"
},
"content": {
"rendered": "<div class=\"wp-block-columns\" data-wp-block='{\"isStackedOnMobile\":true}' data-wp-block-name=\"core\/columns\"><div class=\"wp-block-column\" data-wp-block=\"[]\" data-wp-block-name=\"core\/column\"><p data-wp-block='{\"content\":\"\",\"dropCap\":false}' data-wp-block-name=\"core\/paragraph\">Colum 1<\/p>\n<\/div>\n\n\n<div class=\"wp-block-column\" data-wp-block=\"[]\" data-wp-block-name=\"core\/column\"><p data-wp-block='{\"content\":\"\",\"dropCap\":false}' data-wp-block-name=\"core\/paragraph\">Column 1<\/p>\n<\/div>\n<\/div>\n",
"rendered": "<div class=\"wp-block-columns\" data-wp-block='{\"isStackedOnMobile\":true}' data-wp-block-name=\"core\/columns\"><div class=\"wp-block-column\" data-wp-block=\"[]\" data-wp-block-name=\"core\/column\"><p data-wp-block='{\"content\":\"\",\"dropCap\":false}' data-wp-block-name=\"core\/paragraph\">Column 1<\/p>\n<\/div>\n\n\n<div class=\"wp-block-column\" data-wp-block=\"[]\" data-wp-block-name=\"core\/column\"><p data-wp-block='{\"content\":\"\",\"dropCap\":false}' data-wp-block-name=\"core\/paragraph\">Column 1<\/p>\n<\/div>\n<\/div>\n",
"protected": false
},
"excerpt": {
"rendered": "<p>Colum 1 Column 1<\/p>\n",
"rendered": "<p>Column 1 Column 1<\/p>\n",
"protected": false
},
"author": 2,
Expand All @@ -31,7 +31,7 @@
"ping_status": "closed",
"template": "",
"meta": [],
"yoast_head": "<!-- This site is optimized with the Yoast SEO plugin v21.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Debug Blocks - HeadstartWP<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/js1.10up.com\/debug-blocks\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Debug Blocks - HeadstartWP\" \/>\n<meta property=\"og:description\" content=\"Colum 1 Column 1\" \/>\n<meta property=\"og:url\" content=\"https:\/\/js1.10up.com\/debug-blocks\/\" \/>\n<meta property=\"og:site_name\" content=\"HeadstartWP\" \/>\n<meta property=\"article:modified_time\" content=\"2022-10-24T17:07:43+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/js1.10up.com\/debug-blocks\/\",\"url\":\"https:\/\/js1.10up.com\/debug-blocks\/\",\"name\":\"Debug Blocks - HeadstartWP\",\"isPartOf\":{\"@id\":\"https:\/\/js1.10up.com\/#website\"},\"datePublished\":\"2022-10-24T17:07:42+00:00\",\"dateModified\":\"2022-10-24T17:07:43+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/js1.10up.com\/debug-blocks\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/js1.10up.com\/debug-blocks\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/js1.10up.com\/debug-blocks\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/js1.10up.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Debug Blocks\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/js1.10up.com\/#website\",\"url\":\"https:\/\/js1.10up.com\/\",\"name\":\"HeadstartWP\",\"description\":\"HeadstartWP Demo Site\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/js1.10up.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->",
"yoast_head": "<!-- This site is optimized with the Yoast SEO plugin v21.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Debug Blocks - HeadstartWP<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/js1.10up.com\/debug-blocks\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Debug Blocks - HeadstartWP\" \/>\n<meta property=\"og:description\" content=\"Column 1 Column 1\" \/>\n<meta property=\"og:url\" content=\"https:\/\/js1.10up.com\/debug-blocks\/\" \/>\n<meta property=\"og:site_name\" content=\"HeadstartWP\" \/>\n<meta property=\"article:modified_time\" content=\"2022-10-24T17:07:43+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/js1.10up.com\/debug-blocks\/\",\"url\":\"https:\/\/js1.10up.com\/debug-blocks\/\",\"name\":\"Debug Blocks - HeadstartWP\",\"isPartOf\":{\"@id\":\"https:\/\/js1.10up.com\/#website\"},\"datePublished\":\"2022-10-24T17:07:42+00:00\",\"dateModified\":\"2022-10-24T17:07:43+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/js1.10up.com\/debug-blocks\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/js1.10up.com\/debug-blocks\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/js1.10up.com\/debug-blocks\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/js1.10up.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Debug Blocks\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/js1.10up.com\/#website\",\"url\":\"https:\/\/js1.10up.com\/\",\"name\":\"HeadstartWP\",\"description\":\"HeadstartWP Demo Site\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/js1.10up.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->",
"yoast_head_json": {
"title": "Debug Blocks - HeadstartWP",
"robots": {
Expand All @@ -45,7 +45,7 @@
"og_locale": "en_US",
"og_type": "article",
"og_title": "Debug Blocks - HeadstartWP",
"og_description": "Colum 1 Column 1",
"og_description": "Column 1 Column 1",
"og_url": "https:\/\/js1.10up.com\/debug-blocks\/",
"og_site_name": "HeadstartWP",
"article_modified_time": "2022-10-24T17:07:43+00:00",
Expand Down Expand Up @@ -1806,4 +1806,4 @@
]
}
}
]
]
2 changes: 1 addition & 1 deletion packages/epio-search/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export type EPHit =
_id: string;
_score: number;
_source: EPPost;
hightlight:
highlight:
| {
post_title?: string[];
post_content_plain?: string[];
Expand Down
8 changes: 4 additions & 4 deletions packages/next-redis-cache-provider/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,19 @@

### Major Changes

- 6956fbb8: Suport for >= Next.js 13.5
- 6956fbb8: Support for >= Next.js 13.5

## 1.0.0-next.0

### Major Changes

- 6956fbb8: Suport for >= Next.js 13.5
- 6956fbb8: Support for >= Next.js 13.5

## 0.2.0

### Minor Changes

- 3e73ab7a: Add suport for redis sentinel
- 3e73ab7a: Add support for redis sentinel

### Patch Changes

Expand All @@ -54,7 +54,7 @@

### Minor Changes

- 3e73ab7a: Add suport for redis sentinel
- 3e73ab7a: Add support for redis sentinel

## 0.1.5

Expand Down
2 changes: 1 addition & 1 deletion packages/next/src/config/withHeadstartWPConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ export function withHeadstartWPConfig(

if (!clientConfigPath && !serverConfigPath) {
throw new ConfigError(
'Missing config, when spliting config between server and client you need to specify both headstartwp.config.client.js and headstartwp.server.config.js',
'Missing config, when splitting config between server and client you need to specify both headstartwp.config.client.js and headstartwp.server.config.js',
);
}

Expand Down
2 changes: 1 addition & 1 deletion packages/next/src/handlers/previewHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ export async function previewHandler(
/**
* Builds the default redirect path
*
* @returns the default redirec tpath
* @returns the default redirect path
*/
const getDefaultRedirectPath = () => {
if (preview?.usePostLinkForRedirect) {
Expand Down
4 changes: 2 additions & 2 deletions packages/next/src/middlewares/__tests__/appMiddleware.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { NextRequest } from 'next/server';
import { setHeadstartWPConfig } from '@headstartwp/core/utils';
import { AppMiddleware, getAppRouterLocale } from '../appMidleware';
import { AppMiddleware, getAppRouterLocale } from '../appMiddleware';

describe('appMiddleware', () => {
it('adds headers', async () => {
Expand Down Expand Up @@ -669,7 +669,7 @@ describe('appMiddleware', () => {
expect(res.status).toBe(307);
expect(res.headers.get('Location')).toBe('http://test2.com/post-name');

// es is an unsuported but valid locale
// es is an unsupported but valid locale
req = new NextRequest('http://test2.com/es/post-name', {
method: 'GET',
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,13 @@ export function getAppRouterLocale(request: NextRequest): [string, string] | und
return [defaultLocale, defaultLocale];
}

type AppMidlewareOptions = {
type AppMiddlewareOptions = {
appRouter: boolean;
};

export async function AppMiddleware(
req: NextRequest,
options: AppMidlewareOptions = { appRouter: false },
options: AppMiddlewareOptions = { appRouter: false },
) {
let response = NextResponse.next();
const { pathname, searchParams } = req.nextUrl;
Expand Down
2 changes: 1 addition & 1 deletion packages/next/src/middlewares/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from './appMidleware';
export * from './appMiddleware';
2 changes: 1 addition & 1 deletion packages/next/src/rsc/blocks/__tests__/LinkBlock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { getHeadstartWPConfig, setHeadstartWPConfig } from '@headstartwp/core';
import { LinkBlock } from '../LinkBlock';

describe('LinkBlock', () => {
it('shound replace internal links with next/link', () => {
it('should replace internal links with next/link', () => {
setHeadstartWPConfig({
sourceUrl: 'http://wpadmin.com',
hostUrl: 'http://domain.com',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`LinkBlock shound replace internal links with next/link 1`] = `
exports[`LinkBlock should replace internal links with next/link 1`] = `
<div>
<div
class="content"
Expand Down
2 changes: 1 addition & 1 deletion packages/next/src/rsc/components/__tests__/Link.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { SettingsProvider } from '@headstartwp/core/react';
import { Link } from '../Link';

describe('Link', () => {
it('shound replace internal links with next/link', () => {
it('should replace internal links with next/link', () => {
const { container } = render(
<SettingsProvider
settings={{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Link shound replace internal links with next/link 1`] = `
exports[`Link should replace internal links with next/link 1`] = `
<div>
<a
href="/post-name"
Expand Down
Loading