- Notifications
You must be signed in to change notification settings - Fork928
fix: Syntax highlighting with long lines and untar content with emojis#5098
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes fromall commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
declare module "js-untar" { | ||
interface File { | ||
name: string | ||
blob: Blob | ||
} | ||
const Untar: (buffer: ArrayBuffer) => { | ||
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -12,11 +12,9 @@ const TEMPLATE_NAME = "coder-ts" | ||
const VERSION_NAME = "12345" | ||
const TERRAFORM_FILENAME = "main.tf" | ||
const README_FILENAME = "readme.md" | ||
const TEMPLATE_VERSION_FILES = { | ||
[TERRAFORM_FILENAME]: "{}", | ||
[README_FILENAME]: "Readme", | ||
} | ||
const setup = async () => { | ||
@@ -38,10 +36,9 @@ const setup = async () => { | ||
describe("TemplateVersionPage", () => { | ||
beforeEach(setup) | ||
it("shows files", () => { | ||
expect(screen.queryByText(TERRAFORM_FILENAME)).toBeInTheDocument() | ||
expect(screen.queryByText(README_FILENAME)).toBeInTheDocument() | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Why did we end up changing this test? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Because now, the filtering happens inside of the "parsing" function. I made it to not have to parse 100 files to only get 2 of them after. | ||
}) | ||
it("shows the right content when click on the file name", async () => { | ||