Skip to content

Commit

Permalink
test(agent): add a fail case test for postprocess (#1294)
Browse files Browse the repository at this point in the history
* test(agent): add a fail case test for postprocess

* fix extension name

* Update clients/tabby-agent/src/postprocess/golden/remove_duplication/duplicated_line_suffix.toml

Co-authored-by: Zhiming Ma <[email protected]>

---------

Co-authored-by: Zhiming Ma <[email protected]>
  • Loading branch information
erfanium and icycodes authored Jan 25, 2024
1 parent 8c5b864 commit 5d8b490
Showing 1 changed file with 22 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
description = 'Remove duplication: dupicated line suffix'

[config]
# use default config

[context]
filepath = 'checks.ts'
language = 'typescript'
# indentation = ' ' # not specified
text = '''
const log = ({ ok }: { ok:├ boolean }) => { ┤ }) => {
console.log(ok);
}
'''

[expected]
text = '''
const log = ({ ok }: { ok:├ boolean┤ }) => {
console.log(ok);
}
'''
notEqual = true # FIXME: fix bad case

0 comments on commit 5d8b490

Please sign in to comment.