-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: use cid v0 * fix: remove comment
- Loading branch information
Showing
3 changed files
with
7 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,13 @@ | ||
import {describe, expect, it} from 'vitest'; | ||
import {Hash} from './onlyHash'; | ||
|
||
describe('validateAIP', () => { | ||
it('should succeed when all keys are present', async () => { | ||
describe('validateHash', () => { | ||
it('should generate same hash', async () => { | ||
const header = `--- | ||
title: TestTitle | ||
discussions: TestDiscussion | ||
author: TestAuthor | ||
---`; | ||
expect(await Hash.of(header)).toBe( | ||
'bafkreidu7hxuf3jj6dmtvgtomaipokksxvy7uastfbkdu2zq3c4wrn7mb4', | ||
); | ||
expect(await Hash.of(header)).toBe('QmYMiDJUYXGsUng5rAgwgLvZzLEMjbhaWALFbQJjC6saPv'); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters