summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorringabout <43030857+ringabout@users.noreply.github.com>2024-05-10 16:30:24 +0800
committerGitHub <noreply@github.com>2024-05-10 10:30:24 +0200
commit1eb9aac2f7a8469a682528a0d63128d599fabae7 (patch)
tree85cacebea5f757d6b032152d7ceb0f7935d91a0e /tests
parent2e3777d6f39fd3593a69a498a5524db2006fdc91 (diff)
downloadNim-1eb9aac2f7a8469a682528a0d63128d599fabae7.tar.gz
adds Nim-related mimetypes back (#23589)
ref https://github.com/nim-lang/Nim/pull/23226
Diffstat (limited to 'tests')
-rw-r--r--tests/stdlib/tmimetypes.nim5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/stdlib/tmimetypes.nim b/tests/stdlib/tmimetypes.nim
index 372a8f3d8..fd66ebd97 100644
--- a/tests/stdlib/tmimetypes.nim
+++ b/tests/stdlib/tmimetypes.nim
@@ -19,5 +19,10 @@ template main() =
   # see also `runnableExamples`.
   # xxx we should have a way to avoid duplicating code between runnableExamples and tests
 
+  doAssert m.getMimetype("nim") == "text/nim"
+  doAssert m.getMimetype("nimble") == "text/nimble"
+  doAssert m.getMimetype("nimf") == "text/nim"
+  doAssert m.getMimetype("nims") == "text/nim"
+
 static: main()
 main()