mirror of
https://github.com/DeLaGuardo/setup-clojure.git
synced 2024-12-27 16:41:06 +08:00
fix
This commit is contained in:
parent
34aa397a4e
commit
db9c263c59
@ -8,8 +8,8 @@ import path = require('path');
|
||||
const toolDir = path.join(__dirname, 'runner', 'tools', 'leiningen');
|
||||
const tempDir = path.join(__dirname, 'runner', 'temp', 'leiningen');
|
||||
|
||||
process.env['RUNNER_TOOL_CACHE'] = path.join(__dirname, 'runner', 'tools');
|
||||
process.env['RUNNER_TEMP'] = path.join(__dirname, 'runner', 'temp');
|
||||
process.env['RUNNER_TOOL_CACHE'] = toolDir;
|
||||
process.env['RUNNER_TEMP'] = tempDir;
|
||||
import * as leiningen from '../src/leiningen';
|
||||
|
||||
describe('leiningen tests', () => {
|
||||
@ -48,7 +48,6 @@ describe('leiningen tests', () => {
|
||||
|
||||
expect(fs.existsSync(`${clojureDir}.complete`)).toBe(true);
|
||||
expect(fs.existsSync(path.join(clojureDir, 'bin', 'lein'))).toBe(true);
|
||||
await exec.exec('lein version');
|
||||
}, 100000);
|
||||
|
||||
it('Uses version of leiningen installed in cache', async () => {
|
||||
|
@ -7,8 +7,8 @@ import path = require('path');
|
||||
const toolDir = path.join(__dirname, 'runner', 'tools', 'tdeps');
|
||||
const tempDir = path.join(__dirname, 'runner', 'temp', 'tdeps');
|
||||
|
||||
process.env['RUNNER_TOOL_CACHE'] = path.join(__dirname, 'runner', 'tools');
|
||||
process.env['RUNNER_TEMP'] = path.join(__dirname, 'runner', 'temp');
|
||||
process.env['RUNNER_TOOL_CACHE'] = toolDir;
|
||||
process.env['RUNNER_TEMP'] = tempDir;
|
||||
import * as tdeps from '../src/tdeps';
|
||||
|
||||
describe('tdeps tests', () => {
|
||||
@ -47,7 +47,6 @@ describe('tdeps tests', () => {
|
||||
|
||||
expect(fs.existsSync(`${clojureDir}.complete`)).toBe(true);
|
||||
expect(fs.existsSync(path.join(clojureDir, 'bin', 'clojure'))).toBe(true);
|
||||
exec.exec('clojure -Sdescribe');
|
||||
}, 100000);
|
||||
|
||||
it('Uses version of clojure tools-deps installed in cache', async () => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user