aboutsummaryrefslogtreecommitdiff
path: root/test/image.unit.js
diff options
context:
space:
mode:
authorJakub Mandula <[email protected]>2017-02-26 13:51:40 +0000
committerJakub Mandula <[email protected]>2017-02-26 13:51:40 +0000
commit232a2a58d70935c57d311b5ba237347f703c2131 (patch)
tree69f695e62e17386988c47f8522bf5e14db193839 /test/image.unit.js
parentd6c20353360ef1eefb56128eeb50ece4f5845372 (diff)
parentf379057be0112d6732b056d93d1380be18e1087a (diff)
downloadfaker-232a2a58d70935c57d311b5ba237347f703c2131.tar.xz
faker-232a2a58d70935c57d311b5ba237347f703c2131.zip
Merge branch 'Mark/origin' into creditCard
Diffstat (limited to 'test/image.unit.js')
-rw-r--r--test/image.unit.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/image.unit.js b/test/image.unit.js
index e7c7c3c7..2839d91a 100644
--- a/test/image.unit.js
+++ b/test/image.unit.js
@@ -113,4 +113,10 @@ describe("image.js", function () {
assert.equal(transport, 'http://lorempixel.com/640/480/transport');
});
});
+ describe("dataUri", function () {
+ it("returns a blank data", function () {
+ var dataUri = faker.image.dataUri(200,300);
+ assert.equal(dataUri, 'data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20version%3D%221.1%22%20baseProfile%3D%22full%22%20width%3D%22200%22%20height%3D%22300%22%3E%20%3Crect%20width%3D%22100%25%22%20height%3D%22100%25%22%20fill%3D%22grey%22%2F%3E%20%20%3Ctext%20x%3D%220%22%20y%3D%2220%22%20font-size%3D%2220%22%20text-anchor%3D%22start%22%20fill%3D%22white%22%3E200x300%3C%2Ftext%3E%20%3C%2Fsvg%3E');
+ });
+ });
});