{"id":20471377,"url":"https://github.com/statewalker/webrun-files-test","last_synced_at":"2025-08-01T20:08:16.668Z","repository":{"id":144678801,"uuid":"612404605","full_name":"statewalker/webrun-files-test","owner":"statewalker","description":null,"archived":false,"fork":false,"pushed_at":"2024-04-05T05:13:59.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-16T02:21:46.403Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/statewalker.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2023-03-10T21:53:27.000Z","updated_at":"2023-03-10T22:02:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"9929593a-0941-458c-b5db-f20547069ca9","html_url":"https://github.com/statewalker/webrun-files-test","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/statewalker%2Fwebrun-files-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/statewalker%2Fwebrun-files-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/statewalker%2Fwebrun-files-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/statewalker%2Fwebrun-files-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/statewalker","download_url":"https://codeload.github.com/statewalker/webrun-files-test/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242038965,"owners_count":20061921,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-15T14:15:56.117Z","updated_at":"2025-03-05T13:42:25.102Z","avatar_url":"https://github.com/statewalker.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# @statewalker/webrun-files-tests\n\nThis package contains a set of common tests for all FilesApi (@statewalker/webrun-files) implementations.\n\n## Usage\n\n```js\n// Import a batch of common tests\nimport { runFilesApiTests } from \"@statewalker/webrun-files-tests\";\n\n// Import a specific FilesApi implementation\nimport { MemFilesApi } from \"@statewalker/webrun-files\";\n\n// Import expect.js\nimport expect from \"expect.js\";s\n// Import crypto library (used to calculate content hashes - SHA1).\nimport crypto from \"crypto\";\n\n// Run tests on the specified FilesApi instance. This method provids all required dependencies.\nrunFilesApiTests({\n  \n  // Human-readable name of this set of tests:\n  name : \"MemFilesApi\",\n\n  // This method returns a FilesApi instance to test:\n  newFilesApi : () =\u003e new MemFilesApi(),\n\n  // An instance of the \"expect.js\" testing library:\n  expect,\n\n  // Standard crypto instance. Used to calculate SHA-1 hashes of files content:\n  crypto\n})\n\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstatewalker%2Fwebrun-files-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstatewalker%2Fwebrun-files-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstatewalker%2Fwebrun-files-test/lists"}