Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: remove fixtures #117

Merged
merged 1 commit into from
Feb 17, 2021
Merged
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
1 change: 1 addition & 0 deletions packages/ipfs-unixfs-exporter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
"it-all": "^1.0.1",
"it-buffer-stream": "^1.0.2",
"it-first": "^1.0.1",
"merge-options": "^3.0.3",
"multicodec": "^2.0.0",
"nyc": "^15.0.0",
"sinon": "^9.0.1",
Expand Down
33 changes: 0 additions & 33 deletions packages/ipfs-unixfs-exporter/test/helpers/create-shard.js

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/* eslint-env mocha */
'use strict'

const importer = require('../src')
const exporter = require('ipfs-unixfs-exporter')
const importer = require('ipfs-unixfs-importer')
const exporter = require('../src')

const { expect } = require('aegir/utils/chai')
const IPLD = require('ipld')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ const { expect } = require('aegir/utils/chai')
const IPLD = require('ipld')
const inMemory = require('ipld-in-memory')
const all = require('it-all')
const importer = require('../src')
const exporter = require('ipfs-unixfs-exporter')
const importer = require('ipfs-unixfs-importer')
const exporter = require('../src')
const blockApi = require('./helpers/block')
const uint8ArrayFromString = require('uint8arrays/from-string')
const uint8ArrayToString = require('uint8arrays/to-string')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ const isNode = require('detect-node')
const bigFile = loadFixture((isNode ? __dirname : 'test') + '/fixtures/1.2MiB.txt')
const blockApi = require('./helpers/block')

const importer = require('../src')
const exporter = require('ipfs-unixfs-exporter')
const importer = require('ipfs-unixfs-importer')
const exporter = require('../src')

const strategies = [
'flat',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/* eslint-env mocha */
'use strict'

const importer = require('../src')
const exporter = require('ipfs-unixfs-exporter')
const importer = require('ipfs-unixfs-importer')
const exporter = require('../src')
const extend = require('merge-options')
const { expect } = require('aegir/utils/chai')
const spy = require('sinon/lib/sinon/spy')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,8 @@

const chunker = require('../src/chunker/fixed-size')
const { expect } = require('aegir/utils/chai')
const isNode = require('detect-node')
const all = require('it-all')
const loadFixture = require('aegir/fixtures')
const rawFile = loadFixture((isNode ? __dirname : 'test') + '/fixtures/1MiB.txt')
const rawFile = new Uint8Array(Math.pow(2, 20))
const uint8ArrayFromString = require('uint8arrays/from-string')
const uint8ArrayConcat = require('uint8arrays/concat')

Expand Down
8 changes: 3 additions & 5 deletions packages/ipfs-unixfs-importer/test/chunker-rabin.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,11 @@

const chunker = require('../src/chunker/rabin')
const { expect } = require('aegir/utils/chai')
const loadFixture = require('aegir/fixtures')
const isNode = require('detect-node')
const all = require('it-all')
const uint8ArrayFromString = require('uint8arrays/from-string')
const uint8ArrayConcat = require('uint8arrays/concat')

const rawFile = loadFixture((isNode ? __dirname : 'test') + '/fixtures/1MiB.txt')
const rawFile = new Uint8Array(Math.pow(2, 20)).fill(1)

describe('chunker: rabin', function () {
this.timeout(30000)
Expand Down Expand Up @@ -71,9 +69,9 @@ describe('chunker: rabin', function () {
const file = uint8ArrayConcat([rawFile, uint8ArrayFromString('hello')])
const opts = {
...defaultOptions,
minChunkSize: KiB256 / 3,
minChunkSize: Math.round(KiB256 / 3),
avgChunkSize: KiB256,
maxChunkSize: KiB256 + (KiB256 / 2)
maxChunkSize: Math.round(KiB256 + (KiB256 / 2))
}

const chunks = await all(chunker([file], opts))
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

This file was deleted.

This file was deleted.

4 changes: 0 additions & 4 deletions packages/ipfs-unixfs-importer/test/fixtures/dir-big.block

This file was deleted.

This file was deleted.

Binary file not shown.
5 changes: 0 additions & 5 deletions packages/ipfs-unixfs-importer/test/fixtures/dir-nested.block

This file was deleted.

This file was deleted.

This file was deleted.

3 changes: 0 additions & 3 deletions packages/ipfs-unixfs-importer/test/fixtures/dir-small.block

This file was deleted.

This file was deleted.

This file was deleted.

Empty file.
Binary file not shown.

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.

This file was deleted.

Binary file not shown.
4 changes: 0 additions & 4 deletions packages/ipfs-unixfs-importer/test/fixtures/pim/200Bytes.txt

This file was deleted.

1 change: 0 additions & 1 deletion packages/ipfs-unixfs-importer/test/fixtures/small.txt

This file was deleted.

Loading