Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions test/e2e/toFile.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ test('toFile svg', function (t) {
})

test('toFile utf8', function (t) {
const fileName = path.join(os.tmpdir(), 'qrimage.txt')
const fileName = path.join(os.tmpdir(), 'qrimage-utf8.txt')
const expectedOutput = [
' ',
' ',
Expand Down Expand Up @@ -225,7 +225,7 @@ test('toFile utf8', function (t) {
})

test('toFile manual segments', function (t) {
const fileName = path.join(os.tmpdir(), 'qrimage.txt')
const fileName = path.join(os.tmpdir(), 'qrimage-segments.txt')
const segs = [
{ data: 'ABCDEFG', mode: 'alphanumeric' },
{ data: '0123456', mode: 'numeric' }
Expand Down
2 changes: 1 addition & 1 deletion test/unit/renderer/utf8.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ test('Utf8Renderer render', function (t) {

test('Utf8 renderToFile', function (t) {
const sampleQrData = QRCode.create('sample text', { version: 2 })
const fileName = 'qrimage.txt'
const fileName = 'qrimage-to-file.txt'
let fsStub = sinon.stub(fs, 'writeFile').callsArg(2)

t.plan(5)
Expand Down