Title: Update osa4.md by vaaPo · Pull Request #93 · fullstackopen/fullstackopen.github.io · GitHub
Open Graph Title: Update osa4.md by vaaPo · Pull Request #93 · fullstackopen/fullstackopen.github.io
X Title: Update osa4.md by vaaPo · Pull Request #93 · fullstackopen/fullstackopen.github.io
Description: //const initialNotes = await api //initialNotes määritelty beforeAll, menee ehkä sekaisin testien kanssa Voisi siis ehkä olla nk. responseBeforePost ja responseAfterPost, jos nimeämiskäytäntö on vaan oikein? Testi bugaa mielestäni tässä: // expect(response.body.length).toBe(initialNotes.length) Comparing two different types of values. Expected undefined but received number. Eli pitäisi olla siis initialNotes.body. mutta ehkä selkeämpi siis ehkä: expect(responseAfterPost.body.length).toBe(responseBeforePost.body.length); Yleisesti ottain noiden .length kanssa on saanut muutenkin tapella, kun on yrittänyt etsiä sellaista kätevää sql ISNULL tyyppistä löytääkseen milloin joku on siis null :)
Open Graph Description: //const initialNotes = await api //initialNotes määritelty beforeAll, menee ehkä sekaisin testien kanssa Voisi siis ehkä olla nk. responseBeforePost ja responseAfterPost, jos nimeämiskäytäntö on ...
X Description: //const initialNotes = await api //initialNotes määritelty beforeAll, menee ehkä sekaisin testien kanssa Voisi siis ehkä olla nk. responseBeforePost ja responseAfterPost, jos nimeämiskäytäntö on ...
Opengraph URL: https://github.com/fullstackopen/fullstackopen.github.io/pull/93
X: @github
Domain: patch-diff.githubusercontent.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:fecdc153-7e85-a145-6cd8-61e3f5e43723 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 84A4:BA01C:E2718:1351CB:6977B2DB |
| html-safe-nonce | b473357d9c9f4a7f261ba235ad63760d69bec312cdbd0589979e1ee05b1c0def |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NEE0OkJBMDFDOkUyNzE4OjEzNTFDQjo2OTc3QjJEQiIsInZpc2l0b3JfaWQiOiIyMDk1MDQxNzI4NDYzMzA1ODciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 444f79840aee7aacafafa85c6d1d0000f185d6fd1f9aa0724f4ed7e2809c362e |
| hovercard-subject-tag | pull_request:237825584 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/fullstackopen/fullstackopen.github.io/pull/93/files |
| twitter:image | https://avatars.githubusercontent.com/u/44552334?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/44552334?s=400&v=4 |
| og:image:alt | //const initialNotes = await api //initialNotes määritelty beforeAll, menee ehkä sekaisin testien kanssa Voisi siis ehkä olla nk. responseBeforePost ja responseAfterPost, jos nimeämiskäytäntö on ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | cd86879038a75d35d75e56f263b8ad57328b023c6a7de3aa5f9ca0dfd46935bb |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/fullstackopen/fullstackopen.github.io git https://github.com/fullstackopen/fullstackopen.github.io.git |
| octolytics-dimension-user_id | 37301661 |
| octolytics-dimension-user_login | fullstackopen |
| octolytics-dimension-repository_id | 124904981 |
| octolytics-dimension-repository_nwo | fullstackopen/fullstackopen.github.io |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 124904981 |
| octolytics-dimension-repository_network_root_nwo | fullstackopen/fullstackopen.github.io |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8458c691435c924883b72423ecd12134159e1b18 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width