Skip to content

Commit

Permalink
add js suffix when import
Browse files Browse the repository at this point in the history
  • Loading branch information
coldstar1993 committed Mar 9, 2024
1 parent a8b4ca1 commit e66c9d4
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 16 deletions.
8 changes: 4 additions & 4 deletions test/compact_smt.test.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { Field, Poseidon, Provable } from 'o1js';
import { CSMTUtils } from '../src/lib/compact_smt/proofs';
import { CompactSparseMerkleTree } from '../src/lib/compact_smt/csmt';
import { ProvableCSMTUtils } from '../src/lib/compact_smt/verify_circuit';
import { MemoryStore } from '../src/lib/store/memory_store';
import { CSMTUtils } from '../src/lib/compact_smt/proofs.js';
import { CompactSparseMerkleTree } from '../src/lib/compact_smt/csmt.js';
import { ProvableCSMTUtils } from '../src/lib/compact_smt/verify_circuit.js';
import { MemoryStore } from '../src/lib/store/memory_store.js';

describe('CompactSparseMerkleTree', () => {
let tree: CompactSparseMerkleTree<Field, Field>;
Expand Down
2 changes: 1 addition & 1 deletion test/level_store.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Level } from 'level';
import { Field } from 'o1js';
import { LevelStore } from '../src/lib/store/level_store';
import { LevelStore } from '../src/lib/store/level_store.js';
import { jest } from '@jest/globals';

jest.setTimeout(100000);
Expand Down
2 changes: 1 addition & 1 deletion test/memory_store.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Field } from 'o1js';
import { MemoryStore } from '../src/lib/store/memory_store';
import { MemoryStore } from '../src/lib/store/memory_store.js';

describe('MemoryStore', () => {
let store: MemoryStore<Field>;
Expand Down
8 changes: 4 additions & 4 deletions test/merkle_tree.test.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { Field, Provable } from 'o1js';
import { MerkleTree } from '../src/lib/merkle/merkle_tree';
import { MerkleTreeUtils } from '../src/lib/merkle/proofs';
import { ProvableMerkleTreeUtils } from '../src/lib/merkle/verify_circuit';
import { MemoryStore } from '../src/lib/store/memory_store';
import { MerkleTree } from '../src/lib/merkle/merkle_tree.js';
import { MerkleTreeUtils } from '../src/lib/merkle/proofs.js';
import { ProvableMerkleTreeUtils } from '../src/lib/merkle/verify_circuit.js';
import { MemoryStore } from '../src/lib/store/memory_store.js';

describe('SparseMerkleTree', () => {
let tree: MerkleTree<Field>;
Expand Down
2 changes: 1 addition & 1 deletion test/mongo_store.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import mongoose from 'mongoose';
import { Field } from 'o1js';
import { MongoStore } from '../src/lib/store/mongo_store';
import { MongoStore } from '../src/lib/store/mongo_store.js';
import { MongoMemoryReplSet } from 'mongodb-memory-server';
import { jest } from '@jest/globals';

Expand Down
2 changes: 1 addition & 1 deletion test/rocks_store.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Field } from 'o1js';
import { RocksStore } from '../src/lib/store/rocks_store';
import { RocksStore } from '../src/lib/store/rocks_store.js';
import encode from 'encoding-down';
import rocksdb from 'rocksdb';
import levelup from 'levelup';
Expand Down
8 changes: 4 additions & 4 deletions test/smt.test.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { Field, Poseidon, Provable } from 'o1js';
import { MemoryStore } from '../src/lib/store/memory_store';
import { SparseMerkleTree } from '../src/lib/smt/smt';
import { SMTUtils } from '../src/lib/smt/proofs';
import { ProvableSMTUtils } from '../src/lib/smt/verify_circuit';
import { MemoryStore } from '../src/lib/store/memory_store.js';
import { SparseMerkleTree } from '../src/lib/smt/smt.js';
import { SMTUtils } from '../src/lib/smt/proofs.js';
import { ProvableSMTUtils } from '../src/lib/smt/verify_circuit.js';

describe('SparseMerkleTree', () => {
let tree: SparseMerkleTree<Field, Field>;
Expand Down

0 comments on commit e66c9d4

Please sign in to comment.