Skip to content

Commit

Permalink
Add test case for Alba's meta nil value
Browse files Browse the repository at this point in the history
  • Loading branch information
skryukov committed Sep 5, 2024
1 parent 1cd1e1a commit 818c36a
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
9 changes: 9 additions & 0 deletions spec/__snapshots__/AlbaMetaNil.ts.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Typelizer digest 22be4653e9abf0c8b5e2963602fbf179
//
// DO NOT MODIFY: This file was automatically generated by Typelizer.

type AlbaMetaNil = {
id: number;
}

export default AlbaMetaNil;
3 changes: 2 additions & 1 deletion spec/__snapshots__/index.ts.snap
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Typelizer digest cc9502b1f9ad666caf72dabb190670a0
// Typelizer digest 3c3bed842a60e703fd96dab39cdc1cb5
//
// DO NOT MODIFY: This file was automatically generated by Typelizer.
export type { default as AlbaMetaNil } from './AlbaMetaNil'
export type { default as AlbaMeta } from './AlbaMeta'
export type { default as AlbaPost } from './AlbaPost'
export type { default as AlbaUserAuthor } from './AlbaUserAuthor'
Expand Down
8 changes: 8 additions & 0 deletions spec/app/app/serializers/alba/meta_nil_serializer.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
module Alba
class MetaNilSerializer < BaseSerializer
typelize_from ::User
attributes :id

meta nil
end
end

0 comments on commit 818c36a

Please sign in to comment.