Skip to content

Commit

Permalink
update changelog, add test
Browse files Browse the repository at this point in the history
  • Loading branch information
jellizaveta committed Dec 19, 2024
1 parent 688f78c commit b955c44
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,19 @@ The format is based on [Keep a Changelog][keepachangelog], and this project adhe
[keepachangelog]: https://keepachangelog.com/en/1.0.0/
[semver]: https://semver.org/spec/v2.0.0.html

## [2.1.3] - 2024-12-19

## Added

- Support for ABP CSS injections [#224].

## Changed

- Updated [@adguard/agtree] to `v2.3.0`.

[2.1.3]: https://github.com/AdguardTeam/AGLint/compare/v2.1.2...v2.1.3
[#224]: https://github.com/AdguardTeam/AGLint/issues/224

## [2.1.2] - 2024-11-25

### Fixed
Expand Down
15 changes: 15 additions & 0 deletions test/linter/rules/no-invalid-css-syntax.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,21 @@ describe('no-invalid-css-syntax', () => {
});
});

test('support ABP syntax CSS injection', () => {
// if is closed properly
expect(
linter.lint(
[
'example.com###banner {remove:true;}',
'example.com###banner {display:none!important;}',
'example.com###banner { background: pink !important; }',
].join(NEWLINE),
),
).toMatchObject({
problems: [],
});
});

test('should detect invalid CSS', () => {
expect(
linter.lint(
Expand Down

0 comments on commit b955c44

Please sign in to comment.