postgresqlPackages.pg_byteamagic: improve tests with assertion

This commit is contained in:
Wolfgang Walther
2025-04-21 12:34:46 +02:00
parent 8d2b8de0a1
commit 3ebdd4913c
@@ -29,6 +29,13 @@ postgresqlBuildExtension (finalAttrs: {
CREATE EXTENSION byteamagic;
SELECT byteamagic_mime('test');
'';
asserts = [
{
query = "SELECT byteamagic_mime('test')";
expected = "'text/plain'";
description = "`byteamagic_mime(...) should return proper mimetype.";
}
];
};
};