From a7e17eabff784daa1599ad0dd21a4bb6e1a529a9 Mon Sep 17 00:00:00 2001 From: Woody Date: Tue, 2 Apr 2024 20:12:14 +0200 Subject: [PATCH] add cdata test for package.json & fix a small bug --- tools/cdata-test.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/cdata-test.js b/tools/cdata-test.js index 55f068073..7c2f11bd9 100644 --- a/tools/cdata-test.js +++ b/tools/cdata-test.js @@ -131,7 +131,7 @@ describe('Script', () => { // run script cdata.js again and wait for it to finish await execPromise('node tools/cdata.js'); - checkIfFileWasNewlyCreated(path.join(folderPath, resultFile)); + await checkIfFileWasNewlyCreated(path.join(folderPath, resultFile)); } describe('should build if', () => { @@ -182,6 +182,10 @@ describe('Script', () => { it('cdata.js changes', async () => { await testFileModification('tools/cdata.js', 'html_ui.h'); }); + + it('package.json changes', async () => { + await testFileModification('package.json', 'html_ui.h'); + }); }); describe('should not build if', () => {