Skip to content

Commit

Permalink
build(guards)!: drop .guard extension
Browse files Browse the repository at this point in the history
Signed-off-by: Lexus Drumgold <[email protected]>
  • Loading branch information
unicornware committed Aug 3, 2022
1 parent 889c71c commit bc33094
Show file tree
Hide file tree
Showing 19 changed files with 21 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import AppEnv from 'src/enums/app-env.enum'
import type { TestcaseFn } from 'tests/interfaces'
import testSubject from '../is-app-env.guard'
import testSubject from '../is-app-env'

describe('unit:guards/isAppEnv', () => {
interface Case extends TestcaseFn<typeof testSubject> {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*/

import type { TestcaseFn } from 'tests/interfaces'
import testSubject from '../is-booleanish.guard'
import testSubject from '../is-booleanish'

describe('unit:guards/isBooleanish', () => {
interface Case extends TestcaseFn<typeof testSubject> {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*/

import type { TestcaseFn } from 'tests/interfaces'
import testSubject from '../is-empty-string.guard'
import testSubject from '../is-empty-string'

describe('unit:guards/isEmptyString', () => {
interface Case extends TestcaseFn<typeof testSubject> {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
*/

import type { Testcase } from 'tests/interfaces'
import * as isEmptyString from '../is-empty-string.guard'
import testSubject from '../is-empty-value.guard'
import * as isNIL from '../is-nil.guard'
import * as isEmptyString from '../is-empty-string'
import testSubject from '../is-empty-value'
import * as isNIL from '../is-nil'

describe('functional:guards/isEmptyValue', () => {
interface Case extends Testcase<{ isEmptyString: number; isNIL: number }> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import JwtType from 'src/enums/jwt-type.enum'
import type { TestcaseFn } from 'tests/interfaces'
import testSubject from '../is-jwt-type.guard'
import testSubject from '../is-jwt-type'

describe('unit:guards/isJwtType', () => {
interface Case extends TestcaseFn<typeof testSubject> {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*/

import type { TestcaseFn } from 'tests/interfaces'
import testSubject from '../is-nil.guard'
import testSubject from '../is-nil'

describe('unit:guards/isNIL', () => {
interface Case extends TestcaseFn<typeof testSubject> {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import NodeEnv from 'src/enums/node-env.enum'
import type { TestcaseFn } from 'tests/interfaces'
import testSubject from '../is-node-env.guard'
import testSubject from '../is-node-env'

describe('unit:guards/isNodeEnv', () => {
interface Case extends TestcaseFn<typeof testSubject> {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*/

import type { TestcaseFn } from 'tests/interfaces'
import testSubject from '../is-number-string.guard'
import testSubject from '../is-number-string'

describe('unit:guards/isNumberString', () => {
interface Case extends TestcaseFn<typeof testSubject> {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*/

import type { TestcaseFn } from 'tests/interfaces'
import testSubject from '../is-number-string.guard'
import testSubject from '../is-number-string'

describe('unit:guards/isUnixTimestamp', () => {
interface Case extends TestcaseFn<typeof testSubject> {}
Expand Down
16 changes: 8 additions & 8 deletions src/guards/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
* @module tutils/guards
*/

export { default as isAppEnv } from './is-app-env.guard'
export { default as isBooleanish } from './is-booleanish.guard'
export { default as isEmptyString } from './is-empty-string.guard'
export { default as isEmptyValue } from './is-empty-value.guard'
export { default as isNIL } from './is-nil.guard'
export { default as isNodeEnv } from './is-node-env.guard'
export { default as isNumberString } from './is-number-string.guard'
export { default as isUnixTimestamp } from './is-unix-timestamp.guard'
export { default as isAppEnv } from './is-app-env'
export { default as isBooleanish } from './is-booleanish'
export { default as isEmptyString } from './is-empty-string'
export { default as isEmptyValue } from './is-empty-value'
export { default as isNIL } from './is-nil'
export { default as isNodeEnv } from './is-node-env'
export { default as isNumberString } from './is-number-string'
export { default as isUnixTimestamp } from './is-unix-timestamp'
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
*/

import type { EmptyValue } from 'src/types'
import isEmptyString from './is-empty-string.guard'
import isNIL from './is-nil.guard'
import isEmptyString from './is-empty-string'
import isNIL from './is-nil'

/**
* Checks if `value` is an empty string or `NIL`.
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit bc33094

Please sign in to comment.