Skip to content

Commit

Permalink
style: remove redundant console.log
Browse files Browse the repository at this point in the history
  • Loading branch information
muningis committed Dec 18, 2024
1 parent d91d6dd commit cb27722
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/__tests__/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {getMDXComponent, getMDXExport} from '../client.js'

const {render} = rtl

test('smoke test', async () => {
test.only('smoke test', async () => {
const mdxSource = `
---
title: Example Post
Expand Down Expand Up @@ -417,7 +417,7 @@ test('should output assets', async () => {
)
})

test.only('should support importing named exports', async () => {
test('should support importing named exports', async () => {
const mdxSource = `
---
title: Example Post
Expand Down
3 changes: 1 addition & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ async function bundleMDX({
bundle: true,
format: 'iife',
globalName: 'Component',
minify: true,
minify: false,
},
matter.data,
)
Expand All @@ -268,7 +268,6 @@ async function bundleMDX({
)
}

console.log(code);
return {
code: `${code};return Component;`,
frontmatter: matter.data,
Expand Down

0 comments on commit cb27722

Please sign in to comment.