Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor/unit test #45

Merged
merged 3 commits into from
Jul 4, 2024
Merged

Refactor/unit test #45

merged 3 commits into from
Jul 4, 2024

Conversation

zhangc110033
Copy link
Collaborator

No description provided.

Copy link

netlify bot commented Jul 4, 2024

Deploy Preview for tisqleditor-playground ready!

Name Link
🔨 Latest commit 5bc960f
🔍 Latest deploy log https://app.netlify.com/sites/tisqleditor-playground/deploys/668619979d6d93000894e61e
😎 Deploy Preview https://deploy-preview-45--tisqleditor-playground.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Collaborator

@baurine baurine left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Comment on lines -33 to -40
// TODO: fix
// don't why, diagnosticCount should expect to be 1, but always get 0
// expect(diagnosticCount(editorView.state)).toBe(1)
expect(diagnosticCount(editorView.state)).toBe(0)
forEachDiagnostic(editorView.state, (d, from, to) => {
expect(d.severity).toBe('warning')
expect(from).toBe(0)
expect(to).toBe(LINE_1.length)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just curious, what's change makes diagnosticCount work now?

@zhangc110033 zhangc110033 merged commit 1bc8087 into main Jul 4, 2024
5 checks passed
@zhangc110033 zhangc110033 deleted the refactor/unit-test branch July 4, 2024 04:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants