Skip to content

Commit

Permalink
add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
atuchin-m committed Nov 7, 2024
1 parent ec05ea3 commit 31f07db
Show file tree
Hide file tree
Showing 2 changed files with 2,562 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/seed_tools/commands/create.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,13 @@ describe('create command', () => {
expect(VariationsSeed.fromBinary(output).version).toEqual('1');
};

fs_sync.readdirSync(validSeedsDir).forEach((testCase) => {
it(testCase, () => runTest(testCase, undefined));
it('test1', () => runTest('test1', undefined));

// Check creating seed using git history.
it(`${testCase}_old_revision`, () => runTest(testCase, 'HEAD'));
});
// Check creating seed using git history.
it('test1_git_revision', () => runTest('test1', 'HEAD'));

// Check creating seed using git history for legacy seed.json.
it('legacy_seed', () => runTest('legacy_seed', '3f3eb03e'));
});

test('set seed version', async () => {
Expand Down
Loading

0 comments on commit 31f07db

Please sign in to comment.