postgresqlPackages.pg_byteamagic: improve tests with assertion
This commit is contained in:
@@ -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.";
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user