Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
priscilawebdev committed Jul 13, 2023
1 parent 930042f commit a3974e2
Show file tree
Hide file tree
Showing 6 changed files with 244 additions and 231 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"@sentry/browser": "7.55.2",
"@sentry/webpack-plugin": "2.2.2",
"@types/dompurify": "^3.0.2",
"@types/js-cookie": "^3.0.3",
"@types/node": "^20.3.1",
"@types/react": "18.2.12",
"@types/react-dom": "18.2.5",
Expand Down
7 changes: 7 additions & 0 deletions src/components/__tests__/__snapshots__/codeBlock.test.js.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`CodeWrapper renders without placeholder 1`] = `
<code>
process.env.MY_ENV = 'foo'
</code>
`;
2 changes: 1 addition & 1 deletion src/components/codeContext.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {createContext, useEffect, useState} from 'react';
import React, {createContext, useEffect, useState} from 'react';
import Cookies from 'js-cookie';

type ProjectCodeKeywords = {
Expand Down
Loading

0 comments on commit a3974e2

Please sign in to comment.