@jimp/plugin-print
Advanced tools
Comparing version 0.21.3 to 0.21.4--canary.1163.6a6ae39e83bd731ccd25120a160a75b32273f9bd.0
{ | ||
"name": "@jimp/plugin-print", | ||
"version": "0.21.3", | ||
"version": "0.21.4--canary.1163.6a6ae39e83bd731ccd25120a160a75b32273f9bd.0", | ||
"description": "print an image.", | ||
@@ -10,3 +10,3 @@ "main": "dist/index.js", | ||
"scripts": { | ||
"test": "cross-env BABEL_ENV=test mocha --require @babel/register", | ||
"test": "cross-env BABEL_ENV=test mocha --require @babel/register --recursive test --extension js", | ||
"test:watch": "npm run test -- --reporter min --watch", | ||
@@ -25,3 +25,3 @@ "test:coverage": "nyc npm run test", | ||
"dependencies": { | ||
"@jimp/utils": "^0.21.3", | ||
"@jimp/utils": "0.21.4--canary.1163.6a6ae39e83bd731ccd25120a160a75b32273f9bd.0", | ||
"load-bmfont": "^1.4.1" | ||
@@ -34,5 +34,5 @@ }, | ||
"devDependencies": { | ||
"@jimp/custom": "^0.21.3", | ||
"@jimp/plugin-blit": "^0.21.3", | ||
"@jimp/test-utils": "^0.21.3" | ||
"@jimp/custom": "0.21.4--canary.1163.6a6ae39e83bd731ccd25120a160a75b32273f9bd.0", | ||
"@jimp/plugin-blit": "0.21.4--canary.1163.6a6ae39e83bd731ccd25120a160a75b32273f9bd.0", | ||
"@jimp/test-utils": "0.21.4--canary.1163.6a6ae39e83bd731ccd25120a160a75b32273f9bd.0" | ||
}, | ||
@@ -42,3 +42,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "046ea0d26952611c74bebd7b13877eb628458aa3" | ||
"gitHead": "6a6ae39e83bd731ccd25120a160a75b32273f9bd" | ||
} |
@@ -6,2 +6,3 @@ /* eslint key-spacing: ["error", { "align": "value" }] */ | ||
import blit from "@jimp/plugin-blit"; | ||
import expect from "@storybook/expect"; | ||
@@ -52,5 +53,6 @@ import print from "../src"; | ||
image | ||
.print(font, 0, 0, "This is only a test.", image.bitmap.width) | ||
.bitmap.data.should.be.deepEqual(expectedImg.bitmap.data); | ||
expect( | ||
image.print(font, 0, 0, "This is only a test.", image.bitmap.width) | ||
.bitmap.data | ||
).toEqual(expectedImg.bitmap.data); | ||
}); | ||
@@ -66,5 +68,5 @@ })(fontName, fontDefs[fontName]); | ||
image | ||
.print(font, 150, 50, "This is only a test.", 100) | ||
.bitmap.data.should.be.deepEqual(expectedImg.bitmap.data); | ||
expect( | ||
image.print(font, 150, 50, "This is only a test.", 100).bitmap.data | ||
).toEqual(expectedImg.bitmap.data); | ||
}); | ||
@@ -81,5 +83,5 @@ | ||
image | ||
.print(font, 150, 50, "This is only a test.", 100) | ||
.bitmap.data.should.be.deepEqual(expectedImg.bitmap.data); | ||
expect( | ||
image.print(font, 150, 50, "This is only a test.", 100).bitmap.data | ||
).toEqual(expectedImg.bitmap.data); | ||
}); | ||
@@ -94,5 +96,5 @@ | ||
image | ||
.print(font, 0, 0, "ツ ツ ツ", 100) | ||
.bitmap.data.should.be.deepEqual(expectedImg.bitmap.data); | ||
expect(image.print(font, 0, 0, "ツ ツ ツ", 100).bitmap.data).toEqual( | ||
expectedImg.bitmap.data | ||
); | ||
}); | ||
@@ -107,5 +109,5 @@ | ||
image | ||
.print(font, 0, 0, 12345678, 100) | ||
.bitmap.data.should.be.deepEqual(expectedImg.bitmap.data); | ||
expect(image.print(font, 0, 0, 12345678, 100).bitmap.data).toEqual( | ||
expectedImg.bitmap.data | ||
); | ||
}); | ||
@@ -123,3 +125,3 @@ | ||
expectedImage.bitmap.data.should.be.deepEqual(textImage.bitmap.data); | ||
expect(textImage.bitmap.data).toEqual(expectedImage.bitmap.data); | ||
}); | ||
@@ -137,3 +139,3 @@ | ||
expectedImage.bitmap.data.should.be.deepEqual(textImage.bitmap.data); | ||
expect(textImage.bitmap.data).toEqual(expectedImage.bitmap.data); | ||
}); | ||
@@ -154,3 +156,3 @@ | ||
expectedImage.bitmap.data.should.be.deepEqual(textImage.bitmap.data); | ||
expect(textImage.bitmap.data).toEqual(expectedImage.bitmap.data); | ||
}); | ||
@@ -171,3 +173,3 @@ | ||
expectedImage.bitmap.data.should.be.deepEqual(textImage.bitmap.data); | ||
expect(textImage.bitmap.data).toEqual(expectedImage.bitmap.data); | ||
}); | ||
@@ -188,3 +190,3 @@ | ||
expectedImage.bitmap.data.should.be.deepEqual(textImage.bitmap.data); | ||
expect(textImage.bitmap.data).toEqual(expectedImage.bitmap.data); | ||
}); | ||
@@ -207,3 +209,3 @@ | ||
expectedImage.bitmap.data.should.be.deepEqual(textImage.bitmap.data); | ||
expect(textImage.bitmap.data).toEqual(expectedImage.bitmap.data); | ||
}); | ||
@@ -228,3 +230,3 @@ | ||
expectedImage.bitmap.data.should.be.deepEqual(textImage.bitmap.data); | ||
expect(textImage.bitmap.data).toEqual(expectedImage.bitmap.data); | ||
}); | ||
@@ -247,3 +249,3 @@ | ||
expectedImage.bitmap.data.should.be.deepEqual(textImage.bitmap.data); | ||
expect(textImage.bitmap.data).toEqual(expectedImage.bitmap.data); | ||
}); | ||
@@ -268,3 +270,3 @@ | ||
expectedImage.bitmap.data.should.be.deepEqual(textImage.bitmap.data); | ||
expect(textImage.bitmap.data).toEqual(expectedImage.bitmap.data); | ||
}); | ||
@@ -297,3 +299,3 @@ | ||
expectedImage.bitmap.data.should.be.deepEqual(image.bitmap.data); | ||
expect(image.bitmap.data).toEqual(expectedImage.bitmap.data); | ||
}); | ||
@@ -309,4 +311,4 @@ | ||
height.should.be.deepEqual(lineHeight); | ||
expect(height).toEqual(lineHeight); | ||
}); | ||
}); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
896356
1090
+ Added@jimp/utils@0.21.4--canary.1163.6a6ae39e83bd731ccd25120a160a75b32273f9bd.0(transitive)
- Removed@jimp/utils@0.21.3(transitive)
Updated@jimp/utils@0.21.4--canary.1163.6a6ae39e83bd731ccd25120a160a75b32273f9bd.0