Skip to content

Commit 0604c5f

Browse files
committed
Move test assets to dedicated assets directory
Updated test file references to use the new 'test/assets' directory and added various example files for different formats (grd, dot, ce, gridset, obf, obz, opml, spb, sps). This improves test organization and makes asset management more consistent.
1 parent f2a046b commit 0604c5f

44 files changed

Lines changed: 3167 additions & 40 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

test/aliasMethodsIntegration.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ describe('Alias Methods Integration', () => {
3030

3131
describe('TouchChatProcessor Alias Methods', () => {
3232
const processor = new TouchChatProcessor();
33-
const exampleFile = path.join(__dirname, '../examples/example.ce');
33+
const exampleFile = path.join(__dirname, 'assets/excel/example.ce');
3434

3535
it('should extract strings with metadata in expected format', async () => {
3636
if (!fs.existsSync(exampleFile)) {
@@ -124,7 +124,7 @@ describe('Alias Methods Integration', () => {
124124

125125
describe('ObfProcessor Alias Methods', () => {
126126
const processor = new ObfProcessor();
127-
const exampleFile = path.join(__dirname, '../examples/example.obf');
127+
const exampleFile = path.join(__dirname, 'assets/obf/example.obf');
128128

129129
it('should have alias methods available', () => {
130130
expect(typeof processor.extractStringsWithMetadata).toBe('function');
@@ -148,7 +148,7 @@ describe('Alias Methods Integration', () => {
148148

149149
describe('SnapProcessor Alias Methods', () => {
150150
const processor = new SnapProcessor();
151-
const exampleFile = path.join(__dirname, '../examples/example.spb');
151+
const exampleFile = path.join(__dirname, 'assets/snap/example.spb');
152152

153153
it('should have alias methods available', () => {
154154
expect(typeof processor.extractStringsWithMetadata).toBe('function');
@@ -195,7 +195,7 @@ describe('Alias Methods Integration', () => {
195195

196196
it('should not break existing functionality', async () => {
197197
const processor = new TouchChatProcessor();
198-
const exampleFile = path.join(__dirname, '../examples/example.ce');
198+
const exampleFile = path.join(__dirname, 'assets/excel/example.ce');
199199

200200
if (!fs.existsSync(exampleFile)) {
201201
console.log('Skipping backward compatibility test - example file not found');

test/assets/asterics/example.grd

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

test/assets/asterics/example2.grd

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)