Separate unit-test data from integ-test samples

- Upgraded `samples/basic` to use latest Gradle version.
This commit is contained in:
Daz DeBoer 2021-07-05 14:33:02 -06:00
parent 643092d2fc
commit 26b92e3f5c
22 changed files with 340 additions and 8 deletions

View file

@ -5,7 +5,7 @@ describe('crypto-utils', () => {
describe('can hash', () => {
it('a directory', async () => {
const hash = await cryptoUtils.hashFiles(
path.resolve('__tests__/data/basic/gradle')
path.resolve('__tests__/data/crypto-utils-test/gradle')
)
expect(hash).toBe(
process.platform === 'win32'
@ -15,7 +15,7 @@ describe('crypto-utils', () => {
})
it('a directory with a glob', async () => {
const hash = await cryptoUtils.hashFiles(
path.resolve('__tests__/data/basic/'),
path.resolve('__tests__/data/crypto-utils-test/'),
['gradle/**']
)
expect(hash).toBe(
@ -26,7 +26,7 @@ describe('crypto-utils', () => {
})
it('a directory with globs', async () => {
const hash = await cryptoUtils.hashFiles(
path.resolve('__tests__/data/basic/'),
path.resolve('__tests__/data/crypto-utils-test/'),
['**/*.gradle', 'gradle/**']
)
expect(hash).toBe(