Skip to content

Commit

Permalink
Badge fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugome committed Dec 28, 2022
1 parent 960a1bb commit f62e502
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 51 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: Publish to NPM

on:
tags:
- 'v*.*.*'
push:
tags:
- 'v*.*.*'

jobs:
build:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[![Coverage Status](https://coveralls.io/repos/github/LuxChanLu/moleculer-bullmq/badge.svg?branch=master)](https://coveralls.io/github/LuxChanLu/moleculer-bullmq?branch=master)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/24c78365441a4e5e99dde311cfa72f18)](https://www.codacy.com/app/LuxChanLu/moleculer-bullmq?utm_source=github.com&utm_medium=referral&utm_content=LuxChanLu/moleculer-bullmq&utm_campaign=Badge_Grade)
[![Maintainability](https://api.codeclimate.com/v1/badges/e7d4fa4fbe1032b51c77/maintainability)](https://codeclimate.com/github/LuxChanLu/moleculer-bullmq/maintainability)
[![David](https://img.shields.io/david/LuxChanLu/moleculer-bullmq.svg)](https://david-dm.org/LuxChanLu/moleculer-bullmq)
![Libraries.io dependency status for latest release](https://img.shields.io/librariesio/release/npm/moleculer-bullmq)
[![Downloads](https://img.shields.io/npm/dm/moleculer-bullmq.svg)](https://www.npmjs.com/package/moleculer-bullmq)

## How to create job
Expand Down
48 changes: 0 additions & 48 deletions test/unit/index.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,22 +101,6 @@ describe('Mixin', () => {
expect(errors[1].failedReason).toBe('Parameters validation error!')
})
})

// it('should emit misc events', async () => {
// emitSpy.mockClear()
// const job = await ctx.call('jobs.report.generate')
// expect(job).toBeDefined()
// await service.pause()
// await service.resume()
// await scheduler.pause(serviceName)
// await scheduler.resume(serviceName)
// await scheduler.pause()
// await scheduler.resume()
// await WaitForExpect(() => {
// expectJobEvent('paused')
// expectJobEvent('resumed')
// })
// })
})

describe('MixinVersion', () => {
Expand Down Expand Up @@ -205,22 +189,6 @@ describe('MixinVersion', () => {
expect(errors[1].failedReason).toBe('Parameters validation error!')
})
})

it('should emit misc events', async () => {
emitSpy.mockClear()
const job = await ctx.call('v1.jobs.report.generate')
expect(job).toBeDefined()
await service.pause()
await service.resume()
await scheduler.pause(serviceName)
await scheduler.resume(serviceName)
await scheduler.pause()
await scheduler.resume()
await WaitForExpect(() => {
expectJobEvent('paused')
expectJobEvent('resumed')
})
})
})

describe('MixinVersionWithoutPrefix', () => {
Expand Down Expand Up @@ -309,20 +277,4 @@ describe('MixinVersionWithoutPrefix', () => {
expect(errors[1].failedReason).toBe('Parameters validation error!')
})
})

it('should emit misc events', async () => {
emitSpy.mockClear()
const job = await ctx.call('jobs.report.generate')
expect(job).toBeDefined()
await service.pause()
await service.resume()
await scheduler.pause(serviceName)
await scheduler.resume(serviceName)
await scheduler.pause()
await scheduler.resume()
await WaitForExpect(() => {
expectJobEvent('paused')
expectJobEvent('resumed')
})
})
})

0 comments on commit f62e502

Please sign in to comment.