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

Javascript classes not replaced when using single quotes #9

Open
xandermann opened this issue Mar 1, 2022 · 0 comments
Open

Javascript classes not replaced when using single quotes #9

xandermann opened this issue Mar 1, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@xandermann
Copy link
Owner

# TODO
# def test_generate_js_query_selector_simple_quotes(self) -> None:
# """Test"""
# new_js = html_classes_obfuscator.generate_js("document.querySelector('.hello')", {"hello": "test_1"})
# expected_new_js = 'document.querySelector(".test_1")'
# self.assertEqual(new_js, expected_new_js)

# TODO
# def test_generate_js_query_selector_all_simple_quotes(self) -> None:
# """Test"""
# new_js = html_classes_obfuscator.generate_js("document.querySelectorAll('.hello')", {"hello": "test_1"})
# expected_new_js = "document.querySelectorAll('.test_1')"
# self.assertEqual(new_js, expected_new_js)

# TODO
# def test_generate_js_toggle_class_list_simple_quotes(self) -> None:
# """Test"""
# new_js = html_classes_obfuscator.generate_js("myDiv.classList.toggle('hello')", {"hello": "test_1"})
# expected_new_js = "myDiv.classList.toggle('test_1')"
# self.assertEqual(new_js, expected_new_js)

@xandermann xandermann added the bug Something isn't working label Mar 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant