Download this file
| 1 | package mapa |
| 2 | |
| 3 | import ( |
| 4 | "testing" |
| 5 | |
| 6 | "amadan.net/oficina/mapa/internal/mapa/notionmd" |
| 7 | ) |
| 8 | |
| 9 | // A block the import can't bring across is named in words in the |
| 10 | // report, and a type with no name reads with spaces for underscores. |
| 11 | func TestBlocksNotImportedAreNamedInWords(t *testing.T) { |
| 12 | for kind, want := range map[string]string{ |
| 13 | "table_of_contents": "Blocks not imported: Table of contents", |
| 14 | "breadcrumb": "Blocks not imported: Breadcrumbs", |
| 15 | "link_preview": "Blocks not imported: Link previews", |
| 16 | "some_new_block": "Blocks not imported: some new block", |
| 17 | } { |
| 18 | if got := lossLabel(notionmd.LossBlock + kind); got != want { |
| 19 | t.Errorf("%s: %q, want %q", kind, got, want) |
| 20 | } |
| 21 | } |
| 22 | } |
| 23 | |