mirror of
https://github.com/Jeuners/ECC.git
synced 2026-09-19 19:44:10 +02:00
feat(ecc2): persist file activity patch previews
This commit is contained in:
parent
c395b42d2c
commit
eee9768cd8
5 changed files with 133 additions and 8 deletions
|
|
@ -155,6 +155,7 @@ function runTests() {
|
|||
path: 'src/config.ts',
|
||||
action: 'modify',
|
||||
diff_preview: 'API_URL=http://localhost:3000 -> API_URL=https://api.example.com',
|
||||
patch_preview: '@@\n- API_URL=http://localhost:3000\n+ API_URL=https://api.example.com',
|
||||
},
|
||||
]);
|
||||
|
||||
|
|
@ -196,11 +197,13 @@ function runTests() {
|
|||
path: 'src/a.ts',
|
||||
action: 'modify',
|
||||
diff_preview: 'const a = 1; -> const a = 2;',
|
||||
patch_preview: '@@\n- const a = 1;\n+ const a = 2;',
|
||||
},
|
||||
{
|
||||
path: 'src/b.ts',
|
||||
action: 'modify',
|
||||
diff_preview: 'old name -> new name',
|
||||
patch_preview: '@@\n- old name\n+ new name',
|
||||
},
|
||||
]);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue