Skip to content

Commit

Permalink
test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mjhuff committed Oct 11, 2023
1 parent e268b1b commit 7271184
Showing 1 changed file with 0 additions and 79 deletions.
79 changes: 0 additions & 79 deletions app-shell/src/protocol-storage/__tests__/protocol-storage.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,83 +143,4 @@ describe('protocol storage directory utilities', () => {
})
})
})

describe('preParityMigrateProtocolsFrom', () => {
const protocolsDir = path.join(
'__mock-app-path__',
PROTOCOLS_DIRECTORY_NAME
)
const tempProtocolsDir = path.join('__mock-app-path__', 'temp_protocols')
const firstProtocolDirName = 'protocol_item_1'
const secondProtocolDirName = 'protocol_item_2'
const migrateProtocolsFromTempDirectory = preParityMigrateProtocolsFrom(
tempProtocolsDir,
protocolsDir
)

beforeEach(async () => {
return await fs
.mkdir(path.join(tempProtocolsDir))
.then(() =>
fs.mkdir(path.join(tempProtocolsDir, firstProtocolDirName, 'src'))
)
.then(() =>
fs.createFile(
path.join(tempProtocolsDir, firstProtocolDirName, 'src', 'main.py')
)
)
.then(() => fs.mkdir(path.join(tempProtocolsDir, 'analysis')))
.then(() =>
fs.createFile(
path.join(
tempProtocolsDir,
firstProtocolDirName,
'analysis',
'fake_timestamp0.json'
)
)
)
.then(() =>
fs.mkdir(path.join(tempProtocolsDir, secondProtocolDirName, 'src'))
)
.then(() =>
fs.createFile(
path.join(
tempProtocolsDir,
secondProtocolDirName,
'src',
'main.json'
)
)
)
.then(() =>
fs.mkdir(
path.join(tempProtocolsDir, secondProtocolDirName, 'analysis')
)
)
.then(() =>
fs.createFile(
path.join(
tempProtocolsDir,
secondProtocolDirName,
'analysis',
'fake_timestamp1.json'
)
)
)
})

afterEach(() => {
return Promise.all([
fs.rmdir(protocolsDir, { recursive: true }),
fs.rmdir(tempProtocolsDir, { recursive: true }),
])
})

it('TEST ONE HERE', () => {
return migrateProtocolsFromTempDirectory().then(() =>
expect('CONDITIONS HERE, EXAMPLE')
)
})
})
})

0 comments on commit 7271184

Please sign in to comment.