Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: qunit/tests/filterValidation.js

Issue 29713631: Issue 5760 - Use relative require paths (Closed)
Patch Set: Address PS3 comment Created April 3, 2018, 6:03 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: qunit/tests/filterValidation.js
===================================================================
--- a/qunit/tests/filterValidation.js
+++ b/qunit/tests/filterValidation.js
@@ -1,15 +1,15 @@
"use strict";
{
const {parseFilter, parseFilters} = require("filterValidation");
kzar 2018/04/05 11:14:57 What about this one?
Jon Sonesen 2018/04/05 23:01:20 Since this file is names filterValidation as well,
const {BlockingFilter,
ElemHideFilter,
- CommentFilter} = require("filterClasses");
+ CommentFilter} = require("../../adblockpluscore/lib/filterClasses");
QUnit.module("Filter validation");
test("Detecting invalid filters", () =>
{
equal(parseFilter("||example.com^$unknown").error.type, "invalid-filter",
"unknown option");
equal(parseFilter("[foobar]").error.type, "unexpected-filter-list-header",

Powered by Google App Engine
This is Rietveld