Skip to content

Commit

Permalink
fix: remove default export
Browse files Browse the repository at this point in the history
  • Loading branch information
markusahlstrand committed May 22, 2024
1 parent ea47cfd commit 2d58fe1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/feed-parser.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { RssFeed } from '@sesamy/podcast-schemas';
import { XMLParser } from 'fast-xml-parser';

export default async function parseFeedToJson(text: string): Promise<RssFeed> {
export async function parseFeedToJson(text: string): Promise<RssFeed> {
const arrayNodes = [
'item',
'atom:link',
Expand Down
3 changes: 1 addition & 2 deletions test/sesamy-parser.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { describe, it, expect } from 'vitest';
import fs from 'fs';
import { parseFeedToSesamy } from '../src/sesamy-parser';
import parseFeedToJson from '../src/feed-parser';
import { parseFeedToSesamy, parseFeedToJson } from '../src';

// Mock structuredClone globally before your tests
global.structuredClone = obj => JSON.parse(JSON.stringify(obj));
Expand Down

0 comments on commit 2d58fe1

Please sign in to comment.