Skip to content

Commit

Permalink
feat: use enum
Browse files Browse the repository at this point in the history
  • Loading branch information
kmaxxo committed Oct 10, 2023
1 parent 9cf994a commit 77b4b9e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export class CneAudioEmbed extends BlockAnnotation<{
audioEnv: AudioEnvironments;
audioType: string;
audioId: string;
anchorName: string;
anchorName?: string;
}> {
static vendorPrefix = "offset";
static type = "cne-audio-embed";
Expand Down
7 changes: 4 additions & 3 deletions packages/@atjson/renderer-html/test/renderer.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import OffsetSource, {
AudioEnvironments,
Blockquote,
Bold,
CerosEmbed,
CneAudioEmbed,
Code,
CodeBlock,
Heading,
Expand All @@ -20,7 +22,6 @@ import OffsetSource, {
Superscript,
TikTokEmbed,
Underline,
CneAudioEmbed,
} from "@atjson/offset-annotations";
import { ParseAnnotation, serialize } from "@atjson/document";
import Renderer from "../src";
Expand Down Expand Up @@ -566,7 +567,7 @@ describe("renderer-html", () => {
start: 0,
end: 1,
attributes: {
audioEnv: "production",
audioEnv: AudioEnvironments.Production,
anchorName: "podcast",
audioType: "episode",
audioId: "bb2ef05b-de71-469a-b0a5-829f2a54dac6",
Expand All @@ -586,7 +587,7 @@ describe("renderer-html", () => {
start: 0,
end: 1,
attributes: {
audioEnv: "sandbox",
audioEnv: AudioEnvironments.Sandbox,
anchorName: "podcast",
audioType: "episode",
audioId: "bb2ef05b-de71-469a-b0a5-829f2a54dac6",
Expand Down

0 comments on commit 77b4b9e

Please sign in to comment.