crypto.test.ts — svelte Source File
Architecture documentation for crypto.test.ts, a typescript file in the svelte codebase. 3 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR fa4ffc74_bd09_5a41_973b_d02f0d2719e7["crypto.test.ts"] 3cae8e56_c0fb_4ba6_0874_ffdf0dfa134c["crypto.js"] fa4ffc74_bd09_5a41_973b_d02f0d2719e7 --> 3cae8e56_c0fb_4ba6_0874_ffdf0dfa134c a6460863_04d4_2187_b17f_03fcb0b078b2["sha256"] fa4ffc74_bd09_5a41_973b_d02f0d2719e7 --> a6460863_04d4_2187_b17f_03fcb0b078b2 b63ddb92_634c_990b_eb1b_0bad8a4d434e["vitest"] fa4ffc74_bd09_5a41_973b_d02f0d2719e7 --> b63ddb92_634c_990b_eb1b_0bad8a4d434e style fa4ffc74_bd09_5a41_973b_d02f0d2719e7 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { assert, test } from 'vitest';
import { sha256 } from './crypto.js';
const inputs = [
['hello world', 'uU0nuZNNPgilLlLX2n2r+sSE7+N6U4DukIj3rOLvzek='],
['', '47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU='],
['abcd', 'iNQmb9TmM40TuEX88olXnSCciXgjuSF9o+Fhk28DFYk='],
['the quick brown fox jumps over the lazy dog', 'Bcbgjx2f2voDFH/Lj4LxJMdtL3Dj2Ynciq2159dFC+w='],
['工欲善其事,必先利其器', 'oPOthkQ1c5BbPpvrr5WlUBJPyD5e6JeVdWcqBs9zvjA=']
];
test.each(inputs)('sha256("%s")', async (input, expected) => {
const actual = await sha256(input);
assert.equal(actual, expected);
});
Domain
Source
Frequently Asked Questions
What does crypto.test.ts do?
crypto.test.ts is a source file in the svelte codebase, written in typescript. It belongs to the ServerRuntime domain.
What does crypto.test.ts depend on?
crypto.test.ts imports 3 module(s): crypto.js, sha256, vitest.
Where is crypto.test.ts in the architecture?
crypto.test.ts is located at packages/svelte/src/internal/server/crypto.test.ts (domain: ServerRuntime, directory: packages/svelte/src/internal/server).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free