Source identity
| Field | Recorded value |
|---|---|
| Source type | GitHub source |
| Original record | Janady13/thatdeveloperguy-website / tests/unit/truth.test.ts |
| Date | Not specified in source |
| Repository | Janady13/thatdeveloperguy-website |
| Revision | 2bea2ebdff0e34494bff597d4fa9c8422a0c3a94 |
| Branch | main |
| Path or archive member | tests/unit/truth.test.ts |
| Original SHA-256 | 475db45a5ba06f86bc588e0980c8afc18a97c88019cd6728ce004d28e4c5242d |
| Git blob SHA | 8cfe22f5b2d143cb7e7687387e92388a873f5219 |
| Reading-copy SHA-256 | 475db45a5ba06f86bc588e0980c8afc18a97c88019cd6728ce004d28e4c5242d |
Recovered source transcript
Download complete source text ↓15 lines · 1.3 KB
import { test } from 'node:test';
import assert from 'node:assert/strict';
import { project } from '../../tools/import-truth.ts';
test('project copies node wording verbatim and lists what only the owner can supply', () => {
const node = { canonicalHost: 'https://thatdeveloperguy.com/', org: { '@id': 'https://thatdeveloperguy.com/#organization', name: 'ThatDeveloperGuy', legalName: 'THATDEVELOPERGUY LLC', telephone: '+14176712606', telephoneDisplay: '417 671 2606', email: 'admin@thatdeveloperguy.com', foundingDate: '2017', address: { addressLocality: 'Cassville', addressRegion: 'MO' }, sameAs: ['https://www.wikidata.org/wiki/Q139709771'] }, person: { '@id': 'https://thatdeveloperguy.com/#person', name: 'Joseph W. Anady', jobTitle: 'Founder and Principal Engineer', url: 'https://feedthejoe.com/joseph/' }, properties: { hosts: [{ host: 'thatdeveloperguy.com', role: 'the main face' }] } };
const p = project(node as any, 'abc123');
assert.equal(p.schema, 'tdg-site-truth/v1'); assert.equal(p.sourceCommit, 'abc123');
assert.equal(p.org.legalName, 'THATDEVELOPERGUY LLC'); assert.equal(p.org.telephoneDisplay, '417 671 2606');
assert.equal(p.person.jobTitle, 'Founder and Principal Engineer');
assert.equal(p.host.role, 'the main face');
assert.ok(p.ownerToSupply.includes('CAGE code'));
assert.equal(JSON.stringify(p).includes('SDVOSB'), false);
});