Skip to content

Commit

Permalink
Fixing test for createGenerateId
Browse files Browse the repository at this point in the history
  • Loading branch information
JayaKrishnaNamburu committed Jul 17, 2021
1 parent 5c8657a commit 26e013c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/jss-plugin-isolate/src/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import expect from 'expect.js'
import {create, sheets} from 'jss'

import nested from 'jss-plugin-nested'
import isolate from './index'
import isolate from '.'

describe('jss-plugin-isolate', () => {
let jss
Expand Down
2 changes: 1 addition & 1 deletion packages/jss/src/RuleList.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// @flow
import createRule from './utils/createRule'
import {StyleRule, KeyframesRule} from './plugins'
import {StyleRule, KeyframesRule} from './plugins/index'
import type {
RuleListOptions,
ToCssOptions,
Expand Down
2 changes: 1 addition & 1 deletion packages/jss/tests/unit/createGenerateId.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ const sheetMock = {

describe('Unit: jss - createGenerateId', () => {
beforeEach(() => {
resetModuleId()
resetSheets()
resetModuleId()
})

it('should return a function', () => {
Expand Down
2 changes: 1 addition & 1 deletion tests/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {sheets as defaultSheets} from '../packages/jss/src'
import {setVersion} from '../packages/jss/src/utils/moduleId'

export function resetModuleId() {
setVersion(-1)
setVersion(0)
}

export function resetSheets(sheets = defaultSheets) {
Expand Down

0 comments on commit 26e013c

Please sign in to comment.