Skip to content

Commit

Permalink
test: fix imports due to refactoring of jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
prabalsingh24 committed May 25, 2020
1 parent 0feb9b7 commit 338cacd
Show file tree
Hide file tree
Showing 21 changed files with 38 additions and 29 deletions.
3 changes: 2 additions & 1 deletion test/run/run.c.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import {execute} from '../../src/tasks/'
import {expect} from 'chai'
import { RunJob } from '../../src/tasks/job'
import {RunJob} from '../../src/tasks/jobs/run';

describe('run - c', () => {
it('.c file runs correctly', async () => {
const runResult = await execute(new RunJob({
Expand Down
3 changes: 2 additions & 1 deletion test/run/run.cpp.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import {execute} from '../../src/tasks/'
import {expect} from 'chai'
import { RunJob } from '../../src/tasks/job'
import {RunJob} from '../../src/tasks/jobs/run';


describe('run - cpp', () => {
it('.cpp file runs correctly', async () => {
Expand Down
3 changes: 2 additions & 1 deletion test/run/run.csharp.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import {execute} from '../../src/tasks/'
import {expect} from 'chai'
import { RunJob } from '../../src/tasks/job'
import {RunJob} from '../../src/tasks/jobs/run';


describe('run - csharp', () => {
it('.cs file runs correctly', async () => {
Expand Down
3 changes: 2 additions & 1 deletion test/run/run.java8.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import {execute} from '../../src/tasks/'
import {expect} from 'chai'
import { RunJob } from '../../src/tasks/job'
import {RunJob} from '../../src/tasks/jobs/run';


describe('run - java8', () => {
it('.java file runs correctly (Java8)', async () => {
Expand Down
3 changes: 2 additions & 1 deletion test/run/run.nodejs10.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import {execute} from '../../src/tasks/'
import {expect} from 'chai'
import { RunJob } from '../../src/tasks/job'
import {RunJob} from '../../src/tasks/jobs/run';

describe('run - nodejs10', () => {
it('.js file runs correctly (NodeJS 6)', async () => {
const runResult = await execute(new RunJob({
Expand Down
3 changes: 2 additions & 1 deletion test/run/run.nodejs8.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import {execute} from '../../src/tasks/'
import {expect} from 'chai'
import { RunJob } from '../../src/tasks/job'
import {RunJob} from '../../src/tasks/jobs/run';


describe('run - nodejs8', () => {
it('.js file runs correctly (NodeJS 8)', async () => {
Expand Down
3 changes: 2 additions & 1 deletion test/run/run.py2.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import {execute} from '../../src/tasks/'
import {expect} from 'chai'
import { RunJob } from '../../src/tasks/job'
import {RunJob} from '../../src/tasks/jobs/run';


describe('run - py2', () => {
it('.py file runs correctly (Python 2.7)', async () => {
Expand Down
3 changes: 2 additions & 1 deletion test/run/run.py3.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import {execute} from '../../src/tasks/'
import {expect} from 'chai'
import { RunJob } from '../../src/tasks/job'
import {RunJob} from '../../src/tasks/jobs/run';


describe('run - py3', () => {
it('.py file runs correctly (Python 3.0)', async () => {
Expand Down
3 changes: 2 additions & 1 deletion test/run/run.ruby.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import {execute} from '../../src/tasks/'
import {expect} from 'chai'
import { RunJob } from '../../src/tasks/job'
import {RunJob} from '../../src/tasks/jobs/run';


describe('run - ruby', () => {
it('.rb file runs correctly', async () => {
Expand Down
18 changes: 9 additions & 9 deletions test/scenarios/projectScenario.spec.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import { expect } from 'chai'
import { ProjectJob } from '../../src/tasks/job'
import { ProjectJob } from '../../src/tasks/jobs/project';
import ProjectScenarion from '../../src/tasks/scenarios/project'

describe('Project Scenario', () => {
it('should setup', async () => {
const job: ProjectJob = {
id: 1,
source: '',
lang: 'nodejs',
timelimit: 20,
scenario: 'problem',
problem: ''
}
// const job: ProjectJob = {
// id: 1,
// source: '',
// lang: 'nodejs',
// timelimit: 20,
// scenario: 'problem',
// problem: ''
// }
})
})
2 changes: 1 addition & 1 deletion test/scenarios/runScenario.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { mkdir, rm } from 'shelljs'
import RunScenario from '../../src/tasks/scenarios/run'
import config = require('../../config.js')
import * as path from 'path'
import { RunJob } from '../../src/tasks/job'
import {RunJob} from '../../src/tasks/jobs/run';
import * as fs from 'fs'

describe('Run Scenario', () => {
Expand Down
2 changes: 1 addition & 1 deletion test/scenarios/submissionScenario.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { mkdir, rm } from 'shelljs'
import config = require('../../config.js')
import * as path from 'path'
import SubmissionScenario from '../../src/tasks/scenarios/submission'
import { SubmitJob } from '../../src/tasks/job'
import { SubmitJob} from '../../src/tasks/jobs/submission';

describe('Submission Scenario', () => {
it('should setup', async () => {
Expand Down
2 changes: 1 addition & 1 deletion test/submission/submit.c.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { execute } from '../../src/tasks/'
import { expect } from 'chai'
import { SubmitJob } from '../../src/tasks/job'
import { SubmitJob } from "../../src/tasks/jobs/submission";
import { SubmissionResult } from '../../src/types/result'

describe('submit - c', () => {
Expand Down
2 changes: 1 addition & 1 deletion test/submission/submit.cpp.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { execute } from '../../src/tasks/'
import { expect } from 'chai'
import { SubmitJob } from '../../src/tasks/job'
import { SubmitJob } from "../../src/tasks/jobs/submission";
import { SubmissionResult } from '../../src/types/result'

describe('submit - cpp', () => {
Expand Down
2 changes: 1 addition & 1 deletion test/submission/submit.csharp.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { execute } from '../../src/tasks/'
import { expect } from 'chai'
import { SubmitJob } from '../../src/tasks/job'
import { SubmitJob } from "../../src/tasks/jobs/submission";
import { SubmissionResult } from '../../src/types/result'

describe('submit - csharp', () => {
Expand Down
2 changes: 1 addition & 1 deletion test/submission/submit.java8.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { execute } from '../../src/tasks/'
import { expect } from 'chai'
import { SubmitJob } from '../../src/tasks/job'
import { SubmitJob } from "../../src/tasks/jobs/submission";
import { SubmissionResult } from '../../src/types/result'

describe('submit - java8', () => {
Expand Down
2 changes: 1 addition & 1 deletion test/submission/submit.nodejs10.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { execute } from '../../src/tasks/'
import { expect } from 'chai'
import { SubmitJob } from '../../src/tasks/job'
import { SubmitJob } from "../../src/tasks/jobs/submission";
import { SubmissionResult } from '../../src/types/result'

describe('submit - nodejs10', () => {
Expand Down
2 changes: 1 addition & 1 deletion test/submission/submit.nodejs8.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { execute } from '../../src/tasks/'
import { expect } from 'chai'
import { SubmitJob } from '../../src/tasks/job'
import { SubmitJob } from "../../src/tasks/jobs/submission";
import { SubmissionResult } from '../../src/types/result'

describe('submit - nodejs8', () => {
Expand Down
2 changes: 1 addition & 1 deletion test/submission/submit.py2.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { execute } from '../../src/tasks/'
import { expect } from 'chai'
import { SubmitJob } from '../../src/tasks/job'
import { SubmitJob } from "../../src/tasks/jobs/submission";
import { SubmissionResult } from '../../src/types/result'

describe('submit - py2', () => {
Expand Down
2 changes: 1 addition & 1 deletion test/submission/submit.py3.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { execute } from '../../src/tasks/'
import { expect } from 'chai'
import { SubmitJob } from '../../src/tasks/job'
import { SubmitJob } from "../../src/tasks/jobs/submission";
import { SubmissionResult } from '../../src/types/result'

describe('submit - py3', () => {
Expand Down
2 changes: 1 addition & 1 deletion test/submission/submit.ruby.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { execute } from '../../src/tasks/'
import { expect } from 'chai'
import { SubmitJob } from '../../src/tasks/job'
import { SubmitJob } from "../../src/tasks/jobs/submission";
import { SubmissionResult } from '../../src/types/result'

describe('submit - ruby', () => {
Expand Down

0 comments on commit 338cacd

Please sign in to comment.