{"id":16185259,"url":"https://github.com/davemo/given-sweet","last_synced_at":"2025-04-07T13:13:23.117Z","repository":{"id":138658144,"uuid":"46204326","full_name":"davemo/given-sweet","owner":"davemo","description":"given dsl for sweet js","archived":false,"fork":false,"pushed_at":"2021-11-20T01:14:11.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-04T12:07:56.515Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/davemo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"publiccode":null,"codemeta":null}},"created_at":"2015-11-15T04:30:57.000Z","updated_at":"2021-11-20T01:14:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"687c0579-9220-4bba-8f15-1cdfd66b0b43","html_url":"https://github.com/davemo/given-sweet","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/davemo%2Fgiven-sweet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davemo%2Fgiven-sweet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davemo%2Fgiven-sweet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davemo%2Fgiven-sweet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/davemo","download_url":"https://codeload.github.com/davemo/given-sweet/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247657271,"owners_count":20974345,"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-10-10T07:13:53.010Z","updated_at":"2025-04-07T13:13:23.087Z","avatar_url":"https://github.com/davemo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Given-Sweet\n\nThis is mostly just me experimenting with the feasibility of using [sweet.js](https://github.com/mozilla/sweet.js) macros to create a [\"Given\"'like DSL](https://github.com/searls/jasmine-given) for testing.\n\n## Sample Output so far\n\nfrom `lib/given.js` as a sweet macro module and run against `spec/sanity.js`\n\n```\ndescribe \"adding\" {\n  context \"adding 1\" {\n    Given -\u003e x = 5\n    When  -\u003e x += 1\n    Then  -\u003e x == 6\n  }\n}\n```\n\n```\nconsole.log('adding');\nconsole.log('adding 1');\nx = 5;\nx += 1;\nrequire('assert')(x == 6);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavemo%2Fgiven-sweet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavemo%2Fgiven-sweet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavemo%2Fgiven-sweet/lists"}